]> git.mdlowis.com Git - proto/labwc.git/commitdiff
cursor: cursor_rebase() on mouse scroll
authorJohan Malm <jgm323@gmail.com>
Mon, 24 Jan 2022 17:54:06 +0000 (17:54 +0000)
committerJohan Malm <jgm323@gmail.com>
Mon, 24 Jan 2022 17:54:06 +0000 (17:54 +0000)
...to ensure that the surface under the mouse gets the focus even
if the mouse pointer has not moved.

Issue #162

src/cursor.c

index a2e29f04a1e666f24a9fe773f67ecca0c6db1b2f..f88f3a41153e98657f7972b9dbef394f42230ecd 100644 (file)
@@ -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);