[PATCH] gitk: force focus to main window

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Sixt
Date: Wednesday, December 17, 2008 - 4:50 am

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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] gitk: force focus to main window, Johannes Sixt, (Wed Dec 17, 4:50 am)
Re: [PATCH] gitk: force focus to main window, Paul Mackerras, (Wed Dec 17, 2:38 pm)
Re: [PATCH] gitk: force focus to main window, Johannes Schindelin, (Wed Dec 17, 8:14 pm)
Re: [PATCH] gitk: force focus to main window, Jeff King, (Wed Dec 17, 8:23 pm)
Re: [PATCH] gitk: force focus to main window, Paul Mackerras, (Wed Dec 17, 9:09 pm)