git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitk: force focus to main window
@ 2008-12-17 11:50 Johannes Sixt
  2008-12-17 21:38 ` Paul Mackerras
  0 siblings, 1 reply; 6+ messages in thread
From: Johannes Sixt @ 2008-12-17 11:50 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: Git Mailing List, Johannes Schindelin

From: Johannes Schindelin <johannes.schindelin@gmx.de>

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 issue 14.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
---
 gitk-git/gitk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gitk-git/gitk b/gitk-git/gitk
index 1c8d98e..b3d8219 100644
--- a/gitk-git/gitk
+++ b/gitk-git/gitk
@@ -10898,4 +10898,5 @@ if {[info exists permviews]} {
 	addviewmenu $n
     }
 }
+focus -force .
 getcommits {}
-- 
1.6.1.rc3.980.ga0bb

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-12-18  7:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-17 11:50 [PATCH] gitk: force focus to main window Johannes Sixt
2008-12-17 21:38 ` Paul Mackerras
2008-12-18  3:14   ` Johannes Schindelin
2008-12-18  3:23     ` Jeff King
2008-12-18  4:09     ` Paul Mackerras
2008-12-18  7:30   ` [PATCH v2] gitk: force the focus to the main window on Windows Johannes Sixt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).