File mutter-update-actor-on-scroll.patch of Package mutter
From 9108f2eeeceaf7436088f4206f637bf41d8d3998 Mon Sep 17 00:00:00 2001
From: Carlos Garnacho <carlosg@gnome.org>
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3517>
---
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 de33628270e..13eefe2475c 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:
--
GitLab