summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorpatthoyts@users.sourceforge.net <patthoyts>2003-07-28 21:14:11 (GMT)
committerpatthoyts@users.sourceforge.net <patthoyts>2003-07-28 21:14:11 (GMT)
commitdc962fa699600765049765d5c933aa6d547d0939 (patch)
tree3f52de6ff5080308b70d93c1f1037f177346fc8f /library
parentca4333ec50399e7705e0824663fa4245dbb48004 (diff)
downloadtk-dc962fa699600765049765d5c933aa6d547d0939.zip
tk-dc962fa699600765049765d5c933aa6d547d0939.tar.gz
tk-dc962fa699600765049765d5c933aa6d547d0939.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.tcl6
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