mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-09-22 15:19:09 +00:00
don't run axis bindings when locked
This commit is contained in:
@@ -663,6 +663,7 @@ axisnotify(struct wl_listener *listener, void *data)
|
|||||||
|
|
||||||
wlr_idle_notifier_v1_notify_activity(idle_notifier, seat);
|
wlr_idle_notifier_v1_notify_activity(idle_notifier, seat);
|
||||||
|
|
||||||
|
if (!locked) {
|
||||||
if (event->orientation == WL_POINTER_AXIS_VERTICAL_SCROLL)
|
if (event->orientation == WL_POINTER_AXIS_VERTICAL_SCROLL)
|
||||||
adir = event->delta > 0 ? AxisDown : AxisUp;
|
adir = event->delta > 0 ? AxisDown : AxisUp;
|
||||||
else
|
else
|
||||||
@@ -675,6 +676,7 @@ axisnotify(struct wl_listener *listener, void *data)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* 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,
|
wlr_seat_pointer_notify_axis(seat,
|
||||||
|
|||||||
Reference in New Issue
Block a user