Skip to content

Commit e4df519

Browse files
j6tpaulusmack
authored andcommitted
gitk: Force the focus to the main window on Windows
On msysGit, the focus is first on the (Tk) console. This console is then hidden, but keeps the focus. Work around that by forcing the focus onto the gitk window. This fixes msysGit issue 14. Diagnosed and originally fixed by Johannes Schindelin. Signed-off-by: Johannes Sixt <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 61f57cb commit e4df519

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gitk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10914,4 +10914,9 @@ if {[info exists permviews]} {
1091410914
addviewmenu $n
1091510915
}
1091610916
}
10917+
10918+
if {[tk windowingsystem] eq "win32"} {
10919+
focus -force .
10920+
}
10921+
1091710922
getcommits {}

0 commit comments

Comments
 (0)