mutter/src/backends/x11
Pascal Nowack a5d692582d backends/x11: Emit discrete scroll events for accumulated smooth events
MetaVirtualInputDeviceX11 currently doesn't handle smooth scroll events
at all.
So, if a user of the remote desktop API uses smooth scroll events, then
only the wayland backend handles these events.
The user of the remote desktop API however, might not know which
backend is being used and actually the user should not even have to
care about it.

Actual smooth events cannot be emulated in the X11 events.
What can be done however is accumulating smooth events and then when
the accumulated steps surpass the DISCRETE_SCROLL_STEP value, emit a
discrete scroll event.
So, do exactly that, to make smooth scroll events work when the remote
desktop API is used with the x11 backend.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1727>
2021-02-17 21:39:03 +01:00
..
cm backends: Straighten MetaInputSettings creation 2020-11-27 15:14:34 +00:00
nested cogl/onscreen: Add opaque user_data pointer to onscreen present calls 2021-01-22 16:47:08 +00:00
meta-backend-x11.c compositor: Sync pointer after begin/end modal on X11 2021-02-14 13:23:29 +00:00
meta-backend-x11.h compositor: Sync pointer after begin/end modal on X11 2021-02-14 13:23:29 +00:00
meta-barrier-x11.c Use G_DECLARE_DERIVABLE/FINAL_TYPE on some types 2018-12-21 19:48:50 +00:00
meta-barrier-x11.h Use G_DECLARE_DERIVABLE/FINAL_TYPE on some types 2018-12-21 19:48:50 +00:00
meta-clutter-backend-x11.c clutter/main: Use "is display server" state to decide a11y routing 2020-08-13 14:45:10 +02:00
meta-clutter-backend-x11.h Make mutter manage its own clutter backends 2016-07-20 14:23:48 +08:00
meta-crtc-xrandr.c Fix segfaults on 32-bit systems. 2020-07-24 11:24:08 +00:00
meta-crtc-xrandr.h crtc: Make implementations inherit MetaCrtc 2020-06-10 18:54:51 +00:00
meta-cursor-renderer-x11.c cursor-renderer: Always keep the cursor overlay on the stage 2020-08-05 11:11:38 +02:00
meta-cursor-renderer-x11.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-cursor-tracker-x11.c core: Centralize cursor renderer and tracker updates 2020-11-27 15:14:33 +00:00
meta-cursor-tracker-x11.h cursor-tracker: Move out more X11:isms to the X11 backend 2020-08-05 11:11:38 +02:00
meta-event-x11.c backends: Unify touch sequence to slot conversion 2020-12-08 15:37:38 +00:00
meta-event-x11.h backends: Unify touch sequence to slot conversion 2020-12-08 15:37:38 +00:00
meta-gpu-xrandr.c Fix segfaults on 32-bit systems. 2020-07-24 11:24:08 +00:00
meta-gpu-xrandr.h backend: Move GPU ownership from the monitor manager to the backend 2019-06-20 13:31:55 +00:00
meta-input-device-tool-x11.c clutter: Make axes part of the device tool 2020-11-27 15:14:33 +00:00
meta-input-device-tool-x11.h clutter: Move X11 input to src/backends/x11 2019-08-24 08:59:08 +00:00
meta-input-device-x11.c backends/x11: Stop translating a property ID 2020-11-28 13:36:40 +01:00
meta-input-device-x11.h clutter: Move scroll valuator accounting to backends/x11 2020-11-27 15:14:34 +00:00
meta-input-settings-x11.c backends: Simplify MetaInputSettings vfunc 2020-11-27 15:14:33 +00:00
meta-input-settings-x11.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-keymap-x11.c backends: Handle numlock saving/restoring directly in backends 2020-11-27 15:14:33 +00:00
meta-keymap-x11.h clutter: Move keymap direction from ClutterBackend to ClutterKeymap 2020-01-30 17:59:46 +01:00
meta-monitor-manager-xrandr.c Change all g_memdup() to g_memdup2() 2021-02-04 19:16:28 +01:00
meta-monitor-manager-xrandr.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-output-xrandr.c Change all g_memdup() to g_memdup2() 2021-02-04 19:16:28 +01:00
meta-output-xrandr.h x11: Support the CTM (color transform matrix) RandR property 2021-01-11 13:44:54 +00:00
meta-renderer-x11.c cogl/glx: Move onscreen code to a separate file 2021-01-30 09:11:45 +00:00
meta-renderer-x11.h renderer-x11: Split up into CM and Nested renderers 2017-04-07 22:30:49 +08:00
meta-seat-x11.c backends/x11: Emulate pointer motion while the pointer is off stage 2021-02-14 13:23:29 +00:00
meta-seat-x11.h backends/x11: Emit CLUTTER_DEVICE_ADDED events for initial devices 2020-11-07 10:13:00 +01:00
meta-stage-x11.c cogl: Add CoglX11Onscreen interface 2021-01-30 09:11:46 +00:00
meta-stage-x11.h stage-x11: Move view management to renderer 2020-05-22 00:15:48 +00:00
meta-virtual-input-device-x11.c backends/x11: Emit discrete scroll events for accumulated smooth events 2021-02-17 21:39:03 +01:00
meta-virtual-input-device-x11.h clutter: Move X11 input to src/backends/x11 2019-08-24 08:59:08 +00:00
meta-xkb-a11y-x11.c backends: Make device tracking at MetaInputSettings ad-hoc API 2020-11-27 15:14:33 +00:00
meta-xkb-a11y-x11.h backends: Move keyboard a11y into backends 2020-11-27 15:14:33 +00:00