From 8dd3dc3e3bcbab2b0b8a0c1432d1a8ef7a7f6a6a Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Mon, 24 Jan 2022 17:54:06 +0000 Subject: [PATCH] cursor: cursor_rebase() on mouse scroll ...to ensure that the surface under the mouse gets the focus even if the mouse pointer has not moved. Issue #162 --- src/cursor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cursor.c b/src/cursor.c index a2e29f04..f88f3a41 100644 --- a/src/cursor.c +++ b/src/cursor.c @@ -681,6 +681,7 @@ cursor_axis(struct wl_listener *listener, void *data) wlr_idle_notify_activity(seat->wlr_idle, seat->seat); /* Notify the client with pointer focus of the axis event. */ + cursor_rebase(seat, event->time_msec); wlr_seat_pointer_notify_axis(seat->seat, event->time_msec, event->orientation, event->delta, event->delta_discrete, event->source);