1
0
Fork 0

input-capture: Ignore emulated scroll events

For each libinput scroll event we generate two clutter events
(continuous and discrete), one of them marked as emulated. libei
explicitly specifies that emulation of scrolling must be done in the
client (if desired) so drop the emulated one.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3637>
This commit is contained in:
Peter Hutterer 2024-03-04 10:50:19 +10:00 committed by Marge Bot
parent e0c4b2b241
commit 6a31664a42

View file

@ -1458,6 +1458,9 @@ meta_input_capture_session_process_event (MetaInputCaptureSession *session,
if (!session->eis_pointer)
return TRUE;
if (clutter_event_is_pointer_emulated (event))
break;
finish_flags = clutter_event_get_scroll_finish_flags (event);
if ((finish_flags & CLUTTER_SCROLL_FINISHED_HORIZONTAL))