[mutter/wip/carlosg/unthrottled-wayland: 20/21] clutter/stage: Ensure that generated crossing events go through filters
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/unthrottled-wayland: 20/21] clutter/stage: Ensure that generated crossing events go through filters
- Date: Wed, 25 Aug 2021 16:57:14 +0000 (UTC)
commit 8aaf1e23c27b7376c5556e6c73f6f56e16d5e181
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Aug 25 16:39:29 2021 +0200
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.
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 e0d8b2a867..1a5d213abf 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -3697,7 +3697,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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]