mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05: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:
parent
ce5a5789bb
commit
357c506ee7
@ -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;
|
ClutterModifierType grab_mods;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user