From 072b334abc6f065080bf944767bbd53d7a590e47 Mon Sep 17 00:00:00 2001
From: Dominique Martinet <asmadeus@codewreck.org>
Date: Sat, 30 Jun 2018 14:09:32 +0900
Subject: idle_inhibit: stop inhibitor when views become invisible

---
 include/sway/desktop/idle_inhibit_v1.h | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'include/sway/desktop')

diff --git a/include/sway/desktop/idle_inhibit_v1.h b/include/sway/desktop/idle_inhibit_v1.h
index 94c25a42..1764713c 100644
--- a/include/sway/desktop/idle_inhibit_v1.h
+++ b/include/sway/desktop/idle_inhibit_v1.h
@@ -6,8 +6,12 @@
 
 struct sway_idle_inhibitor_v1 {
 	struct sway_server *server;
+	struct sway_view *view;
 
+	struct wl_list link;
 	struct wl_listener destroy;
 };
 
+void idle_inhibit_v1_check_active(struct sway_server *server);
+
 #endif
-- 
cgit v1.2.3