}
wm geometry . "${w}x$h"
}
+ } else {
+ set geometry(main) [wm geometry .]
}
if {[info exists geometry(state)] && $geometry(state) eq "zoomed"} {
set ::BM "2"
}
+ bind . <Configure> {
+ if {[winfo toplevel %W] eq "%W" && [wm state %W] eq "normal"} {
+ set ::geometry(main) %wx%h+%x+%y
+ }
+ }
bind .pwbottom <Configure> {resizecdetpanes %W %w}
pack .ctop -fill both -expand 1
bindall <1> {selcanvline %W %x %y}
puts $f [list set extdifftool $extdifftool]
puts $f [list set perfile_attrs $perfile_attrs]
- puts $f "set geometry(main) [wm geometry .]"
+ puts $f "set geometry(main) $::geometry(main)"
puts $f "set geometry(state) [wm state .]"
puts $f "set geometry(topwidth) [winfo width .tf]"
puts $f "set geometry(topheight) [winfo height .tf]"