@matheusbsbs / matheus-bagliano / commits / e4df519f05
Fork 0

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 <j6t@kdbg.org> Signed-off-by: Paul Mackerras <paulus@samba.org>

Johannes Sixt committed Dec 18, 2008 at 08:30 UTC e4df519f05ab20eae235968166a17a5a196bc377
1 file changed +5
gitk
+5
@@ -10914,4 +10914,9 @@ if {[info exists permviews]} {
10914 addviewmenu $n
10915 }
10916 }
10917 +
10918 +if {[tk windowingsystem] eq "win32"} {
10919 + focus -force .
10920 +}
10921 +
10922 getcommits {}