[Wayland-bugs] [Bug 759161] wayland: dialog stacking without parents (RFC)

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Wed Dec 9 09:30:50 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=759161

--- Comment #12 from Olivier Fourdan <ofourdan at redhat.com> ---
Created attachment 317059
  --> https://bugzilla.gnome.org/attachment.cgi?id=317059&action=edit
[PATCH v2] wayland: Update parent of dialogs without transient

Changes in v2:

- Don't leak the toplevel list.
- Don't apply set_parent() between dialogs otherwize mutter/gnome-shell will
freeze in an infinite loop.

Note:

There is (small, imho) caveat in this approach, inherent to the Wayland
protocol: If there is more than one "transient-less" dialog (which is rare in a
real life scenario), the resulting stacking order might be wrong between the
dialogs.
That's because there is no stacking info of the toplevels on Wayland (i.e.
gdk_screen_get_window_stack() won't work so we're bound to use
gdk_screen_get_toplevel_windows() to traverse the window tree, and it doesn't
follow the actual current window stacking order).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20151209/d3c324bd/attachment.html>


More information about the wayland-bugs mailing list