[gnome-shell/wip/carlosg/no-event-source: 8/8] st: Move StWidget away from clutter_event_get_source()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/no-event-source: 8/8] st: Move StWidget away from clutter_event_get_source()
- Date: Wed, 2 Mar 2022 10:19:08 +0000 (UTC)
commit 37966075bbf4a8d464ccfea4c606e78e57a06ae2
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Feb 25 16:13:16 2022 +0100
st: Move StWidget away from clutter_event_get_source()
Ask the stage about the device actor instead for hover tracking.
src/st/st-widget.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/st/st-widget.c b/src/st/st-widget.c
index e131a5108a..f50be949af 100644
--- a/src/st/st-widget.c
+++ b/src/st/st-widget.c
@@ -692,7 +692,13 @@ st_widget_enter (ClutterActor *actor,
if (priv->track_hover)
{
- if (clutter_actor_contains (actor, event->source))
+ ClutterStage *stage;
+ ClutterActor *target;
+
+ stage = clutter_event_get_stage ((ClutterEvent *) event);
+ target = clutter_stage_get_event_actor (stage, (ClutterEvent *) event);
+
+ if (clutter_actor_contains (actor, target))
st_widget_set_hover (ST_WIDGET (actor), TRUE);
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]