From 357c506ee75c15358c4c68827ae384d68ec2e69f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 7 Jul 2021 22:40:33 +0200 Subject: [PATCH] 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: --- src/core/events.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/events.c b/src/core/events.c index 92fb602c7..8afc720ef 100644 --- a/src/core/events.c +++ b/src/core/events.c @@ -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;