aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2008-12-18 08:30:49 +0100
committerPaul Mackerras <paulus@samba.org>2008-12-22 10:16:18 +1100
commite4df519f05ab20eae235968166a17a5a196bc377 (patch)
treeffd95438a70aaf56ae659e4d2fba1b4db0303148
parent61f57cb07d88e06a2027a4a4c571c59d353361a5 (diff)
downloadgit-e4df519f05ab20eae235968166a17a5a196bc377.tar.gz
git-e4df519f05ab20eae235968166a17a5a196bc377.tar.xz
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>
-rwxr-xr-xgitk5
1 files changed, 5 insertions, 0 deletions
diff --git a/gitk b/gitk
index d72196911..dc2a43961 100755
--- a/gitk
+++ b/gitk
@@ -10914,4 +10914,9 @@ if {[info exists permviews]} {
addviewmenu $n
}
}
+
+if {[tk windowingsystem] eq "win32"} {
+ focus -force .
+}
+
getcommits {}