From 2bbd882df9c98592754a3d405e2de53b6a348e32 Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Thu, 8 Sep 2022 01:30:29 +0200 Subject: [PATCH] cursor: Update cursor focus on scroll events --- src/cursor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cursor.c b/src/cursor.c index 72e3c74b..fc5a3204 100644 --- a/src/cursor.c +++ b/src/cursor.c @@ -847,6 +847,9 @@ cursor_axis(struct wl_listener *listener, void *data) struct wlr_pointer_axis_event *event = data; wlr_idle_notify_activity(seat->wlr_idle, seat->seat); + /* Make sure we are sending the events to the surface under the cursor */ + cursor_update_focus(seat->server); + /* Notify the client with pointer focus of the axis event. */ wlr_seat_pointer_notify_axis(seat->seat, event->time_msec, event->orientation, event->delta, event->delta_discrete,