mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-09-21 06:42:52 +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);
|
||||
|
||||
if (!locked) {
|
||||
if (event->orientation == WL_POINTER_AXIS_VERTICAL_SCROLL)
|
||||
adir = event->delta > 0 ? AxisDown : AxisUp;
|
||||
else
|
||||
@@ -675,6 +676,7 @@ axisnotify(struct wl_listener *listener, void *data)
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Notify the client with pointer focus of the axis event. */
|
||||
wlr_seat_pointer_notify_axis(seat,
|
||||
|
||||
Reference in New Issue
Block a user