From: Johannes Sixt Date: Thu, 18 Dec 2008 07:30:49 +0000 (+0100) Subject: gitk: Force the focus to the main window on Windows X-Git-Tag: v1.6.1-rc4~6^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e4df519f05ab20eae235968166a17a5a196bc377;p=git.git 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 Signed-off-by: Paul Mackerras --- 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 {}