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 /include/sway/desktop | |
parent | Add idle inhibit unstable v1 support (diff) | |
download | sway-072b334abc6f065080bf944767bbd53d7a590e47.tar.gz sway-072b334abc6f065080bf944767bbd53d7a590e47.tar.zst sway-072b334abc6f065080bf944767bbd53d7a590e47.zip |
idle_inhibit: stop inhibitor when views become invisible
Diffstat (limited to 'include/sway/desktop')
-rw-r--r-- | include/sway/desktop/idle_inhibit_v1.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ | |||
6 | 6 | ||
7 | struct sway_idle_inhibitor_v1 { | 7 | struct sway_idle_inhibitor_v1 { |
8 | struct sway_server *server; | 8 | struct sway_server *server; |
9 | struct sway_view *view; | ||
9 | 10 | ||
11 | struct wl_list link; | ||
10 | struct wl_listener destroy; | 12 | struct wl_listener destroy; |
11 | }; | 13 | }; |
12 | 14 | ||
15 | void idle_inhibit_v1_check_active(struct sway_server *server); | ||
16 | |||
13 | #endif | 17 | #endif |