Skip to content

Commit

Permalink
gitk: Force the focus to the main window on Windows
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Sixt authored and Paul Mackerras committed Dec 21, 2008
1 parent 61f57cb commit e4df519
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gitk
Original file line number Diff line number Diff line change
Expand Up @@ -10914,4 +10914,9 @@ if {[info exists permviews]} {
addviewmenu $n
}
}

if {[tk windowingsystem] eq "win32"} {
focus -force .
}

getcommits {}

0 comments on commit e4df519

Please sign in to comment.