@leroysheep / LeeRoySheep / commits / 2afd8996ae

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>

Tobias Pietzsch committed Jan 9, 2021 at 23:14 UTC 2afd8996aec692a26c3cdb039a47c18809148c56
1 file changed +1 -1
gitk
+1 -1
index 7a087f123d..de278557b3 100755 --- a/gitk +++ b/gitk @@ -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