diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2018-06-30 14:09:32 +0900 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2018-07-02 09:29:16 +0900 |
commit | 072b334abc6f065080bf944767bbd53d7a590e47 (patch) | |
tree | 113617af8597e174182e4c11736cbb912d151c03 /sway/server.c | |
parent | e4bfb3bc98b28cb083b4138a76d88384a33d6e57 (diff) |
idle_inhibit: stop inhibitor when views become invisible
Diffstat (limited to 'sway/server.c')
-rw-r--r-- | sway/server.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c index 3456931c..ee6b7cde 100644 --- a/sway/server.c +++ b/sway/server.c @@ -68,6 +68,7 @@ bool server_init(struct sway_server *server) { wl_signal_add(&server->idle_inhibit->events.new_inhibitor, &server->new_idle_inhibitor_v1); server->new_idle_inhibitor_v1.notify = handle_idle_inhibitor_v1; + wl_list_init(&server->idle_inhibitors_v1); server->layer_shell = wlr_layer_shell_create(server->wl_display); wl_signal_add(&server->layer_shell->events.new_surface, |