diff options
author | Simon Ser <contact@emersion.fr> | 2023-06-19 21:16:23 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-06-23 12:32:38 +0200 |
commit | b762f455d942e81e076a4a4d475fb9926372da16 (patch) | |
tree | 225c427277bc20279befc7381ad4766fe17a803f /sway/commands/inhibit_idle.c | |
parent | Use wlr_cursor_unset_image() (diff) | |
download | sway-b762f455d942e81e076a4a4d475fb9926372da16.tar.gz sway-b762f455d942e81e076a4a4d475fb9926372da16.tar.zst sway-b762f455d942e81e076a4a4d475fb9926372da16.zip |
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/inhibit_idle.c')
-rw-r--r-- | sway/commands/inhibit_idle.c | 2 |
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) { | |||
41 | sway_idle_inhibit_v1_user_inhibitor_destroy(inhibitor); | 41 | sway_idle_inhibit_v1_user_inhibitor_destroy(inhibitor); |
42 | } else { | 42 | } else { |
43 | inhibitor->mode = mode; | 43 | inhibitor->mode = mode; |
44 | sway_idle_inhibit_v1_check_active(server.idle_inhibit_manager_v1); | 44 | sway_idle_inhibit_v1_check_active(); |
45 | } | 45 | } |
46 | } else if (!clear) { | 46 | } else if (!clear) { |
47 | sway_idle_inhibit_v1_user_inhibitor_register(con->view, mode); | 47 | sway_idle_inhibit_v1_user_inhibitor_register(con->view, mode); |