From e5784bf8854f35e64615ef01469919fe256f4e01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Sun, 8 May 2022 10:05:00 +0200 Subject: [PATCH] clutter/actor: Add detail to ::event signal Just like we did with the ::captured-event signal, add detail to the ::event signal too. At the first glance this might not seem necessary since there are individual signals like scroll-event or touch-event that get emitted at the same time, but these don't exist for touchpad gesture events and others. As an easy solution for that, just make it possible to use detail on the event signal as we did with the caputured-event signal. Part-of: --- clutter/clutter/clutter-actor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c index cf9e72c70..117a775ea 100644 --- a/clutter/clutter/clutter-actor.c +++ b/clutter/clutter/clutter-actor.c @@ -7298,7 +7298,7 @@ clutter_actor_class_init (ClutterActorClass *klass) actor_signals[EVENT] = g_signal_new (I_("event"), G_TYPE_FROM_CLASS (object_class), - G_SIGNAL_RUN_LAST, + G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, G_STRUCT_OFFSET (ClutterActorClass, event), _clutter_boolean_handled_accumulator, NULL, _clutter_marshal_BOOLEAN__BOXED, @@ -12131,7 +12131,7 @@ clutter_actor_event (ClutterActor *actor, g_signal_emit (actor, actor_signals[CAPTURED_EVENT], detail, event, &retval); else { - g_signal_emit (actor, actor_signals[EVENT], 0, event, &retval); + g_signal_emit (actor, actor_signals[EVENT], detail, event, &retval); if (!retval && signal_num != -1) g_signal_emit (actor, actor_signals[signal_num], 0, event, &retval);