git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] gitk: force focus to main window

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Dec 17, 2008, 11:50 UTC
Message-ID
<4948E771.4050705@viscovery.net>
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
Next: Paul Mackerras
Message 1 of 6 in “gitk: force focus to main window”
  1. gitk: force focus to main windowJohannes Sixt, Dec 17, 2008
  2. Paul MackerrasDec 17, 2008
  3. Johannes SchindelinDec 18, 2008
  4. Jeff KingDec 18, 2008
  5. Paul MackerrasDec 18, 2008
  6. gitk: force the focus to the main window on WindowsJohannes Sixt, Dec 18, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.