mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user