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
This commit is contained in:
Johan Malm 2022-01-24 17:54:06 +00:00
parent 2652522a70
commit 8dd3dc3e3b

View file

@ -681,6 +681,7 @@ cursor_axis(struct wl_listener *listener, void *data)
wlr_idle_notify_activity(seat->wlr_idle, seat->seat); wlr_idle_notify_activity(seat->wlr_idle, seat->seat);
/* Notify the client with pointer focus of the axis event. */ /* 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, wlr_seat_pointer_notify_axis(seat->seat, event->time_msec,
event->orientation, event->delta, event->delta_discrete, event->orientation, event->delta, event->delta_discrete,
event->source); event->source);