]> git.mdlowis.com Git - proto/labwc.git/commitdiff
cursor: Update cursor focus on scroll events
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Wed, 7 Sep 2022 23:30:29 +0000 (01:30 +0200)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Wed, 7 Sep 2022 23:32:22 +0000 (01:32 +0200)
src/cursor.c

index 72e3c74b434a4de9f87593edd994e42d3ce07939..fc5a32049d93f79fa2f43bc8607f7b830194a7f0 100644 (file)
@@ -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,