x11: Avoid sloppy/mouse mode handling on Wayland
On Wayland sessions, this handling is unnecessary and even prone to confusion (e.g. crossing serials are only ignored in X11-exclusive paths, so this handling competes directly with that in MetaWaylandPointer). Avoid it entirely there, so MetaWaylandPointer can figure out sloppy/mouse mode focus for all Wayland/Xwayland surfaces. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2828>
This commit is contained in:
parent
caf68a6563
commit
8530e471bc
1 changed files with 1 additions and 0 deletions
|
@ -993,6 +993,7 @@ handle_input_xevent (MetaX11Display *x11_display,
|
||||||
enter_event->mode != XINotifyGrab &&
|
enter_event->mode != XINotifyGrab &&
|
||||||
enter_event->mode != XINotifyUngrab &&
|
enter_event->mode != XINotifyUngrab &&
|
||||||
enter_event->detail != XINotifyInferior &&
|
enter_event->detail != XINotifyInferior &&
|
||||||
|
!meta_is_wayland_compositor () &&
|
||||||
meta_x11_display_focus_sentinel_clear (x11_display))
|
meta_x11_display_focus_sentinel_clear (x11_display))
|
||||||
{
|
{
|
||||||
meta_window_handle_enter (window,
|
meta_window_handle_enter (window,
|
||||||
|
|
Loading…
Reference in a new issue