aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-06-19 21:16:23 +0200
committerSimon Ser <contact@emersion.fr>2023-06-23 12:32:38 +0200
commitb762f455d942e81e076a4a4d475fb9926372da16 (patch)
tree225c427277bc20279befc7381ad4766fe17a803f /sway/commands
parent5411ed4ef0fa84f0622149bbe2305910be9f0b67 (diff)
idle-inhibit-v1: simplify with server global
We only have a single running server, no need to keep track of multiple server instances. Also no need to support multiple idle inhibit managers.
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/inhibit_idle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/inhibit_idle.c b/sway/commands/inhibit_idle.c
index aebc2bf9..6125736a 100644
--- a/sway/commands/inhibit_idle.c
+++ b/sway/commands/inhibit_idle.c
@@ -41,7 +41,7 @@ struct cmd_results *cmd_inhibit_idle(int argc, char **argv) {
sway_idle_inhibit_v1_user_inhibitor_destroy(inhibitor);
} else {
inhibitor->mode = mode;
- sway_idle_inhibit_v1_check_active(server.idle_inhibit_manager_v1);
+ sway_idle_inhibit_v1_check_active();
}
} else if (!clear) {
sway_idle_inhibit_v1_user_inhibitor_register(con->view, mode);