From 28009e8e6339a1657b46ea512d6d47a1b21701d8 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 25 Aug 2021 16:39:29 +0200 Subject: [PATCH] clutter/stage: Ensure that generated crossing events go through filters We essentially create those at the time they need to be handled, and use shortcuts that avoid the event from being queued up. It's too much of a short cut though, these events are also of interest to the Wayland event handlers, e.g. to handle pointer state changes (e.g. repicks due to the pick actor being destroyed) immediately, instead of at the next event. Part-of: --- clutter/clutter/clutter-stage.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c index 3f9394cc1..ad0807bdf 100644 --- a/clutter/clutter/clutter-stage.c +++ b/clutter/clutter/clutter-stage.c @@ -3486,7 +3486,8 @@ create_crossing_event (ClutterStage *stage, * now, so we go on, and synthesize the event emission * ourselves */ - _clutter_process_event (event); + if (!_clutter_event_process_filters (event)) + _clutter_process_event (event); clutter_event_free (event); }