[mutter/wip/carlosg/grabs-pt1: 4/16] clutter: Make crossing events unstoppable
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/grabs-pt1: 4/16] clutter: Make crossing events unstoppable
- Date: Fri, 29 Oct 2021 11:07:50 +0000 (UTC)
commit 56e2a7b37cf0f5545e9fb6cee44794c82e6cb92a
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Oct 26 16:23:03 2021 +0200
clutter: Make crossing events unstoppable
These events are not meant to be ever silenced away, every actor
that is meant to receive one should do so. Make it sure that those
events cannot be stopped, despite the event signal handlers return
values.
This opens the debate about whether crossing events should be
ClutterEvents, since they are more and more uncommon at being one,
maybe this notification mechanism should be taken away from the
event machinery, but that's something for future refactors.
clutter/clutter/clutter-actor.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c
index 5e8c1068b5..b3f4e277ad 100644
--- a/clutter/clutter/clutter-actor.c
+++ b/clutter/clutter/clutter-actor.c
@@ -12383,6 +12383,9 @@ clutter_actor_event (ClutterActor *actor,
handled:
g_object_unref (actor);
+ if (event->type == CLUTTER_ENTER || event->type == CLUTTER_LEAVE)
+ return CLUTTER_EVENT_PROPAGATE;
+
return retval;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]