diff options
| author | Tobias Pietzsch <pietzsch@mycroft.speedport.ip> | 2021-01-09 23:14:08 +0100 |
|---|---|---|
| committer | Johannes Sixt <j6t@kdbg.org> | 2024-11-24 15:31:45 +0100 |
| commit | 2afd8996aec692a26c3cdb039a47c18809148c56 (patch) | |
| tree | 2247e16c55dfec68f44b372e5f8597d8ca1f3439 | |
| parent | c18400c6bb04f4e8875c1930db72ddd9b94649ca (diff) | |
| download | git-2afd8996aec692a26c3cdb039a47c18809148c56.tar.xz | |
gitk: check main window visibility before waiting for it to show
If the main window is already visible when gitk waits for it to
become visible, gitk hangs forever.
This commit adds a check whether the window is already visible.
See https://wiki.tcl-lang.org/page/tkwait+visibility
Signed-off-by: Tobias Pietzsch <pietzsch@mycroft.speedport.ip>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
| -rwxr-xr-x | gitk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -12687,7 +12687,7 @@ catch { wm iconphoto . -default gitlogo gitlogo32 } # wait for the window to become visible -tkwait visibility . +if {![winfo viewable .]} {tkwait visibility .} set_window_title update readrefs |
