From: Johan Malm Date: Mon, 24 Jan 2022 17:54:06 +0000 (+0000) Subject: cursor: cursor_rebase() on mouse scroll X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=8dd3dc3e3bcbab2b0b8a0c1432d1a8ef7a7f6a6a;p=proto%2Flabwc.git 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 --- 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);