Skip to content

Commit

Permalink
Fix idle inhibition
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahdbshsnsndnnm committed Aug 8, 2024
1 parent 24df2e9 commit 6465225
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions include/sway/input/seat.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ struct sway_seat {

uint32_t last_button_serial;

uint32_t idle_inhibit_sources, idle_wake_sources;

list_t *deferred_bindings; // struct sway_binding

struct sway_input_method_relay im_relay;
Expand Down
4 changes: 2 additions & 2 deletions sway/input/seat.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static void handle_seat_destroy(struct wl_listener *listener, void *data) {

void seat_idle_notify_activity(struct sway_seat *seat,
enum sway_input_idle_source source) {
if ((source & seat->idle_inhibit_sources) == 0) {
if ((source & seat->config->idle_inhibit_sources) == 0) {
return;
}
wlr_idle_notifier_v1_notify_activity(server.idle_notifier_v1, seat->wlr_seat);
Expand Down Expand Up @@ -543,7 +543,7 @@ struct sway_seat *seat_create(const char *seat_name) {
seat->destroy.notify = handle_seat_destroy;
wl_signal_add(&seat->wlr_seat->events.destroy, &seat->destroy);

seat->idle_inhibit_sources = seat->idle_wake_sources =
seat->config->idle_inhibit_sources = seat->config->idle_wake_sources =
IDLE_SOURCE_KEYBOARD |
IDLE_SOURCE_POINTER |
IDLE_SOURCE_TOUCH |
Expand Down

0 comments on commit 6465225

Please sign in to comment.