[Wayland-bugs] [Bug 762756] keyboard focus problem on dismiss of menus under wayland
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Wed Apr 27 08:05:52 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=762756
--- Comment #4 from Olivier Fourdan <ofourdan at redhat.com> ---
Ok, could be because the Wayland and X11 backend differ wrt focus handling.
The X server will emit FocusIn and FocusOut events on grab/ungrab and the X11
backend handles that in _gdk_device_manager_core_handle_focus() taking into
account things like the mode and detail given by the XEvent. The X11 backend
will not necessarily emit the focus change GdkEvent.
The Wayland backend tries to emulate that but emits the focus change GdkEvent
quite unconditionally, and I reckon this could be the problem.
Relevant code:
For X11:
https://git.gnome.org/browse/gtk+/tree/gdk/x11/gdkdevicemanager-core-x11.c#n811
For Wayland: gdk_wayland_device_grab()
https://git.gnome.org/browse/gtk+/tree/gdk/wayland/gdkdevice-wayland.c#n642
and device_emit_grab_crossing()
https://git.gnome.org/browse/gtk+/tree/gdk/wayland/gdkdevice-wayland.c#n600
--
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/20160427/4e3e880d/attachment.html>
More information about the wayland-bugs
mailing list