[Wayland-bugs] [Bug 770745] wayland: Warn when an application tries to map popup incorrectly
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Wed Jan 24 04:14:14 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=770745
--- Comment #7 from Jonas Ã…dahl <jadahl at gmail.com> ---
(In reply to Eric Williams from comment #6)
> What protocol does this violate? And why only on Wayland and not X11?
The xdg-shell protocol. It doesn't violate anything on X11 because X11 is more
of a "you're on your own" windowing system, while Wayland is much less so.
>
> I am dealing with a bug in SWT that is related to this fix -- if you could
> explain the logic here it would help understand the issue further.
The warning should happen when you map a popup (i.e. a popup menu that grabs
input) above some other window that is not the top most popup or the toplevel.
For example, lets say you have a toplevel window (e.g. the "main" window of
your application) and an already open popup menu with the toplevel as a parent.
Then you open another popup menu before closing the first one, but the new
popup menu also has the toplevel window as the parent. In xdg-shell (the
Wayland protocol that provides methods for creating "windows", "menus" etc),
this is now allowed, since that would mean two menus would "grab" the same
input device at the same time, which makes no sense.
If you need to have multi level menus, what you need to do is to make sure that
each new child menu is mapped with the old top most child menu as parent. If
you are not using GtkMenu, you might be interested in bug 791845.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20180124/77c57498/attachment.html>
More information about the wayland-bugs
mailing list