summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2021-08-25 17:20:09 +0200
committerCarlos Garnacho <carlosg@gnome.org>2021-08-27 13:58:25 +0200
commit4112d2ddccf78325793f4f679f79c71538865bd9 (patch)
treeb07d10096b35e9305874d4cc77934c24d55002f2
parent8674d4c8ff6fb18e83a231fff4b2f91d7293f313 (diff)
downloadmutter-4112d2ddccf78325793f4f679f79c71538865bd9.tar.gz
clutter/stage: Do not opt styli out of Clutter motion compression
With Wayland handling all events as they come, this code now just performs motion compression for events that will be handled by Clutter widgetry. The intent to opt tablets and styli out of motion compression was early and fast client handling, since that is now covered in a generic manner, this code is superfluous. We don't really need the extra events for these devices in compositor widgetry either.
-rw-r--r--clutter/clutter/clutter-stage.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index 63b5d059f..d79b66550 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -747,7 +747,6 @@ _clutter_stage_process_queued_events (ClutterStage *stage)
ClutterEvent *next_event;
ClutterInputDevice *device;
ClutterInputDevice *next_device;
- ClutterInputDeviceType device_type;
gboolean check_device = FALSE;
event = l->data;
@@ -763,16 +762,8 @@ _clutter_stage_process_queued_events (ClutterStage *stage)
if (device != NULL && next_device != NULL)
check_device = TRUE;
- device_type = clutter_input_device_get_device_type (device);
-
- /* Skip consecutive motion events coming from the same device,
- * except those of tablet tools, since users of these events
- * want no precision loss.
- */
- if (priv->throttle_motion_events && next_event != NULL &&
- device_type != CLUTTER_TABLET_DEVICE &&
- device_type != CLUTTER_PEN_DEVICE &&
- device_type != CLUTTER_ERASER_DEVICE)
+ /* Skip consecutive motion events coming from the same device. */
+ if (priv->throttle_motion_events && next_event != NULL)
{
if (event->type == CLUTTER_MOTION &&
(next_event->type == CLUTTER_MOTION ||