mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
cursor: Update cursor focus on scroll events
This commit is contained in:
parent
f057235a1f
commit
2bbd882df9
1 changed files with 3 additions and 0 deletions
|
|
@ -847,6 +847,9 @@ cursor_axis(struct wl_listener *listener, void *data)
|
||||||
struct wlr_pointer_axis_event *event = data;
|
struct wlr_pointer_axis_event *event = data;
|
||||||
wlr_idle_notify_activity(seat->wlr_idle, seat->seat);
|
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. */
|
/* Notify the client with pointer focus of the axis event. */
|
||||||
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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue