swh:1:snp:47f1e8bb459169b0feb652a9c3d9cbabd8526d4a
Revision 10852086d4dceee924000ef70388b00704f7b463 authored by Alexander Gavrilov on 13 November 2008, 19:02:09 UTC, committed by Shawn O. Pearce on 05 December 2009, 22:26:59 UTC
On MacOS raising a window causes the focus to be transferred
to it -- although it may actually be a bug in the Tcl/Tk port.
When this happens with the blame viewer tooltips, it makes
the interface less usable, because Entry and Leave handlers
on the text view cause the tip to disappear once the mouse
is moved even 1 pixel.

This commit makes the code raise the main window on MacOS
when Tk 8.5 is used. This version seems to properly support
wm transient by making the tip stay on top of the master,
so reraising the master does not cause it to disappear. Thus
the only remaining sign of problems is slight UI flicker
when focus is momentarily transferred to the tip and back.

Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
1 parent 88520ca
History
Tip revision: 84d06cdc06389ae7c462434cb7b1db0980f63860 authored by Junio C Hamano on 26 March 2021, 21:59:47 UTC
Sync with v2.31.1
Tip revision: 84d06cd
File Mode Size
lib
macosx
po
windows
.gitattributes -rw-r--r-- 84 bytes
.gitignore -rw-r--r-- 97 bytes
GIT-VERSION-GEN -rwxr-xr-x 1.8 KB
Makefile -rw-r--r-- 11.4 KB
git-gui--askpass -rwxr-xr-x 1.3 KB
git-gui.sh -rwxr-xr-x 84.9 KB

back to top