mirror of
https://github.com/brl/mutter.git
synced 2025-02-04 15:44:10 +00:00
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. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1915>
This commit is contained in:
parent
28009e8e63
commit
bdd03b9ccd
@ -680,7 +680,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;
|
||||
@ -696,16 +695,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 ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user