Code

gitk: Force the focus to the main window on Windows
[git.git] / gitk
diff --git a/gitk b/gitk
index d72196911cf69110c299660929916bda2ce88ad6..dc2a439618ffd92a92d9ca954a8597ba31875dab 100755 (executable)
--- a/gitk
+++ b/gitk
@@ -10914,4 +10914,9 @@ if {[info exists permviews]} {
        addviewmenu $n
     }
 }
+
+if {[tk windowingsystem] eq "win32"} {
+    focus -force .
+}
+
 getcommits {}