summaryrefslogtreecommitdiffstats
path: root/library/tk.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-16 22:26:50 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-16 22:26:50 (GMT)
commit6e1afb77037d1d3bdec6bab7e516fc50516559d6 (patch)
tree2cdb1ff7b6c35f28702c0ce01d36699053494d74 /library/tk.tcl
parentafac75d77e1560fca29532e63b5f2ebd71c73519 (diff)
downloadtk-6e1afb77037d1d3bdec6bab7e516fc50516559d6.zip
tk-6e1afb77037d1d3bdec6bab7e516fc50516559d6.tar.gz
tk-6e1afb77037d1d3bdec6bab7e516fc50516559d6.tar.bz2
set [wm maxsize] as well
Diffstat (limited to 'library/tk.tcl')
-rw-r--r--library/tk.tcl1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/tk.tcl b/library/tk.tcl
index 1935bbc..57525f1 100644
--- a/library/tk.tcl
+++ b/library/tk.tcl
@@ -122,6 +122,7 @@ proc ::tk::PlaceWindow {w {place ""} {anchor ""}} {
if {$y < 22} { set y 22 }
}
}
+ wm maxsize $w [winfo vrootwidth $w] [winfo vrootheight $w]
wm geometry $w +$x+$y
wm deiconify $w
}