[Wayland-bugs] [Bug 735531] Make tooltips use subsurfaces on wayland

gtk+ (bugzilla.gnome.org) bugzilla at gnome.org
Wed Aug 27 11:10:47 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=735531
  gtk+ | Backend: Wayland | unspecified

--- Comment #3 from Carlos Garnacho <carlosg at gnome.org> 2014-08-27 18:10:45 UTC ---
(In reply to comment #2)
> Review of attachment 284618 [details]:
> 
> ::: gtk/gtktooltip.c
> @@ +910,3 @@
> +                                  GTK_WINDOW (window_widget));
> +  else
> +    gtk_window_set_transient_for (GTK_WINDOW (tooltip->window), NULL);
> 
> If we ever hit the 'no transient parent' case, will that break with subsurfaces
> ? What do we do in that case under Wayland ?

In that case the wl_subsurface is internally lost, but the wl_surface may
remain to create a new wl_subsurface interface for it, the surface is no
wl_shell_surface nor xdg_surface either, so is nothing the compositor would
show.

In the specific case of tooltips, the tooltip window is also on its way to
being hidden, which would mean the wl_surface is gone too, until both resources
are created when the tooltip is needed again (and set_window()/show() happens
again on it)

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Wayland-bugs mailing list