mirror of
https://github.com/swaywm/sway.git
synced 2026-03-14 05:34:18 -04:00
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.
This commit is contained in:
parent
5411ed4ef0
commit
b762f455d9
6 changed files with 28 additions and 39 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue