[Wayland-bugs] [Bug 768017] [Wayland] menus opened from access keys (mnemonic menu items) hide instantly
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Thu Jun 30 11:04:02 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=768017
--- Comment #9 from Olivier Fourdan <ofourdan at redhat.com> ---
Created attachment 330645
--> https://bugzilla.gnome.org/attachment.cgi?id=330645&action=edit
[PATCH] wayland: Use keyboard serial for implicit grab
An xdg-popup requires a serial that the compositor will compare against
its own serial and will dismiss the popup if it doesn't match.
gtk+ uses either a pointer or touch serial for its helper function
_gdk_wayland_seat_get_last_implicit_grab_serial() but if the menu is
triggered before the user has had any pointer or touch interaction with
the client, using a keyboard shortcut, there is neither pointer nor
touch serial available, and gtk+ will use 0 as the default.
As a result, the compositor will instantly dismiss the xdg-popup. In
this case, gtk+ should use the keyboard serial instead.
Track keyboard serial as well and use the keyboard serial as the value
if there is no newer pointer or touch serial available.
--
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/20160630/52afff64/attachment.html>
More information about the wayland-bugs
mailing list