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:
Simon Ser 2023-06-19 21:16:23 +02:00
parent 5411ed4ef0
commit b762f455d9
6 changed files with 28 additions and 39 deletions

View file

@ -344,7 +344,7 @@ static void transaction_progress(void) {
server.queued_transaction = NULL;
if (!server.pending_transaction) {
sway_idle_inhibit_v1_check_active(server.idle_inhibit_manager_v1);
sway_idle_inhibit_v1_check_active();
return;
}