From b762f455d942e81e076a4a4d475fb9926372da16 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 19 Jun 2023 21:16:23 +0200 Subject: 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. --- sway/server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sway/server.c') diff --git a/sway/server.c b/sway/server.c index 9797cf60..cc4719d7 100644 --- a/sway/server.c +++ b/sway/server.c @@ -130,8 +130,7 @@ bool server_init(struct sway_server *server) { server->idle = wlr_idle_create(server->wl_display); server->idle_notifier_v1 = wlr_idle_notifier_v1_create(server->wl_display); - server->idle_inhibit_manager_v1 = - sway_idle_inhibit_manager_v1_create(server->wl_display, server->idle); + sway_idle_inhibit_manager_v1_init(); server->layer_shell = wlr_layer_shell_v1_create(server->wl_display, SWAY_LAYER_SHELL_VERSION); -- cgit v1.2.3