diff options
author | patthoyts@users.sourceforge.net <patthoyts> | 2003-07-28 21:14:11 (GMT) |
---|---|---|
committer | patthoyts@users.sourceforge.net <patthoyts> | 2003-07-28 21:14:11 (GMT) |
commit | d767654da19ecb8657435c7b58f3cdc1d21c6b42 (patch) | |
tree | 3f52de6ff5080308b70d93c1f1037f177346fc8f /library | |
parent | ed5fff269f1eebebbb240d944c56e1a8c7473ee3 (diff) | |
download | tk-d767654da19ecb8657435c7b58f3cdc1d21c6b42.zip tk-d767654da19ecb8657435c7b58f3cdc1d21c6b42.tar.gz tk-d767654da19ecb8657435c7b58f3cdc1d21c6b42.tar.bz2 |
* library/tk.tcl: Apply fix for bug #778840 for window placement
when using multiple desktops on windows.
Diffstat (limited to 'library')
-rw-r--r-- | library/tk.tcl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/library/tk.tcl b/library/tk.tcl index cb22ed6..5b75b2a 100644 --- a/library/tk.tcl +++ b/library/tk.tcl @@ -3,7 +3,7 @@ # Initialization script normally executed in the interpreter for each # Tk-based application. Arranges class bindings for widgets. # -# RCS: @(#) $Id: tk.tcl,v 1.48 2003/05/19 14:44:03 dkf Exp $ +# RCS: @(#) $Id: tk.tcl,v 1.49 2003/07/28 21:14:12 patthoyts Exp $ # # Copyright (c) 1992-1994 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. @@ -100,6 +100,10 @@ proc ::tk::PlaceWindow {w {place ""} {anchor ""}} { set y [expr {([winfo screenheight $w]-[winfo reqheight $w])/2}] set checkBounds 0 } + if {[tk windowingsystem eq "win32"]} { + # Bug 533519: win32 multiple desktops may produce negative geometry. + set checkBounds 0 + } if {$checkBounds} { if {$x < 0} { set x 0 |