Skip to content

Commit 3caa13b

Browse files
Johannes Sixtj6t
authored andcommitted
Revert "gitk: Only restore window size from ~/.gitk, not position"
This reverts commit b9bee11. The commit catered to an unsupportable port of the Windows Tcl/Tk stuck at 8.4.1 that was used by Cygwin. 8.4.1 has some bad bugs in its layout engine, and forced changes in Gitk to be compatible. All this became irrelevant around 2011 after Cygwin gained an X11 server and switched to a supportable port of the Unix/X11 Tcl/Tk (it is now on the current 8.6 code base). Helped-by: Mark Levedahl <mlevedahl@gmail.com> Signed-off-by: Johannes Sixt <j6t@kdbg.org>
1 parent ac8fec7 commit 3caa13b

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

gitk

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2764,17 +2764,9 @@ proc makewindow {} {
27642764
.pwbottom add .bright
27652765
.ctop add .pwbottom
27662766
2767-
# restore window width & height if known
2767+
# restore window position if known
27682768
if {[info exists geometry(main)]} {
2769-
if {[scan $geometry(main) "%dx%d" w h] >= 2} {
2770-
if {$w > [winfo screenwidth .]} {
2771-
set w [winfo screenwidth .]
2772-
}
2773-
if {$h > [winfo screenheight .]} {
2774-
set h [winfo screenheight .]
2775-
}
2776-
wm geometry . "${w}x$h"
2777-
}
2769+
wm geometry . "$geometry(main)"
27782770
}
27792771
27802772
if {[info exists geometry(state)] && $geometry(state) eq "zoomed"} {

0 commit comments

Comments
 (0)