GNOME Bugzilla – Bug 693313
Improve tooltip support
Last modified: 2013-02-12 15:47:31 UTC
Improve the tooltip support by setting the transient parent window on tooltips (to allow them to be positioned) and setting the "transient inactive" flag (to prevent the tooltips from receiving focus).
Created attachment 235376 [details] [review] tooltip: set the transient parent window on tooltips Set the transient parent window on tooltips so that they can be positioned correctly when using the Wayland backend.
Created attachment 235377 [details] [review] wayland: set the transient-inactive flag on tooltip surfaces This prevents the tooltip surfaces from taking the focus away from the parent surface.
Review of attachment 235377 [details] [review]: LGTM.
Review of attachment 235376 [details] [review]: Is this fine for the other backends?
(In reply to comment #4) > Review of attachment 235376 [details] [review]: > > Is this fine for the other backends? I had a look at the Quartz backend and I think it would be OK, but it would need someone to test it. The win32 backend would also need testing.
based on irc feedback, it seems we need to use another api for this; doing it with transient-for will break things on osx, at least.
Review of attachment 235376 [details] [review]: according to irc feedback, its not
Created attachment 235687 [details] [review] tooltip: set the transient parent when using the wayland backend Since setting the transient parent may cause problems on other backends, this patch limits the change to just the Wayland backend.
Review of attachment 235687 [details] [review]: Yes, well ... this is a kinda hack that tightly couples the GTK+ and GDK behaviour. However i've no other alternative :-) and this allows us to make progress.