From fe01e423a384f552cefb58f1db103019885439b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Wed, 16 Nov 2022 14:32:39 +0100 Subject: [PATCH] clutter/stage: Always queue events in _clutter_stage_queue_event() We've been sending all events to clients immediately for quite some time now, so this is only really impacting the Clutter scene graph, not clients anymore. That makes this behavior a somewhat unnecessary optimization (it was useful at the time it was added, but it's not anymore), which will only make our lives harder when we actually expect an event to be queued (eg. in tests), so remove it. Part-of: --- clutter/clutter/clutter-stage.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c index 7d24cf4a8..f32b2621e 100644 --- a/clutter/clutter/clutter-stage.c +++ b/clutter/clutter/clutter-stage.c @@ -611,23 +611,8 @@ _clutter_stage_queue_event (ClutterStage *stage, first_event = priv->event_queue->length == 0; - if (copy_event) - event = clutter_event_copy (event); - - if (first_event) - { - gboolean compressible = event->type == CLUTTER_MOTION || - event->type == CLUTTER_TOUCH_UPDATE; - - if (!compressible) - { - _clutter_process_event (event); - clutter_event_free (event); - return; - } - } - - g_queue_push_tail (priv->event_queue, event); + g_queue_push_tail (priv->event_queue, + copy_event ? clutter_event_copy (event) : event); if (first_event) clutter_stage_schedule_update (stage);