From 9108f2eeeceaf7436088f4206f637bf41d8d3998 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 11 Jan 2024 11:53:50 +0100 Subject: [PATCH] clutter: Update picked actor on scroll events On one hand this avoids crashes early after startup if the very first pointer event is a scroll event, since the stage did not pick an actor for the pointer device yet. On the other hand, scroll events have some likelihood to change the actor under the pointer even though it doesn't move. We still want to cross towards the new actor under the pointer ASAP, without waiting for later events. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3112 Part-of: --- clutter/clutter/clutter-main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clutter/clutter/clutter-main.c b/clutter/clutter/clutter-main.c index de3362827..13eefe247 100644 --- a/clutter/clutter/clutter-main.c +++ b/clutter/clutter/clutter-main.c @@ -530,6 +530,7 @@ clutter_stage_handle_event (ClutterStage *stage, case CLUTTER_TOUCHPAD_SWIPE: case CLUTTER_TOUCHPAD_HOLD: case CLUTTER_PROXIMITY_IN: + case CLUTTER_SCROLL: update_device_for_event (stage, event, TRUE); break; default: