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

--- Comment #4 from Olivier Fourdan <[email protected]> ---
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.
_______________________________________________
wayland-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to