events: Only support super+scroll on wayland

On Xorg, the event only reaches us when the pointer is within the
stage input region. That makes the feature more confusing than
useful, so make it wayland-only.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3759

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1922>
This commit is contained in:
Florian Müllner 2021-07-07 22:40:33 +02:00
parent ce5a5789bb
commit 357c506ee7

View File

@ -373,7 +373,9 @@ meta_display_handle_event (MetaDisplay *display,
}
}
if (event->type == CLUTTER_SCROLL && meta_prefs_get_mouse_button_mods () > 0)
if (meta_is_wayland_compositor () &&
event->type == CLUTTER_SCROLL &&
meta_prefs_get_mouse_button_mods () > 0)
{
ClutterModifierType grab_mods;