aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/desktop/idle_inhibit_v1.h
diff options
context:
space:
mode:
authorLibravatar Damien Tardy-Panis <damien@tardypad.me>2020-05-05 18:35:03 +0200
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2020-05-29 17:29:41 -0400
commit0cbd26f0dae32db38160a82d557017edab8bb632 (patch)
tree33d51bd6d990ca9606d0306e211e3d0e5f464494 /include/sway/desktop/idle_inhibit_v1.h
parentseat_cmd_cursor: emit frame events (diff)
downloadsway-0cbd26f0dae32db38160a82d557017edab8bb632.tar.gz
sway-0cbd26f0dae32db38160a82d557017edab8bb632.tar.zst
sway-0cbd26f0dae32db38160a82d557017edab8bb632.zip
Add views idle inhibition status in get_tree output
Fixes #5286
Diffstat (limited to 'include/sway/desktop/idle_inhibit_v1.h')
-rw-r--r--include/sway/desktop/idle_inhibit_v1.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sway/desktop/idle_inhibit_v1.h b/include/sway/desktop/idle_inhibit_v1.h
index 4d4e59b0..0adafdb9 100644
--- a/include/sway/desktop/idle_inhibit_v1.h
+++ b/include/sway/desktop/idle_inhibit_v1.h
@@ -29,6 +29,9 @@ struct sway_idle_inhibitor_v1 {
29 struct wl_listener destroy; 29 struct wl_listener destroy;
30}; 30};
31 31
32bool sway_idle_inhibit_v1_is_active(
33 struct sway_idle_inhibitor_v1 *inhibitor);
34
32void sway_idle_inhibit_v1_check_active( 35void sway_idle_inhibit_v1_check_active(
33 struct sway_idle_inhibit_manager_v1 *manager); 36 struct sway_idle_inhibit_manager_v1 *manager);
34 37
@@ -38,6 +41,9 @@ void sway_idle_inhibit_v1_user_inhibitor_register(struct sway_view *view,
38struct sway_idle_inhibitor_v1 *sway_idle_inhibit_v1_user_inhibitor_for_view( 41struct sway_idle_inhibitor_v1 *sway_idle_inhibit_v1_user_inhibitor_for_view(
39 struct sway_view *view); 42 struct sway_view *view);
40 43
44struct sway_idle_inhibitor_v1 *sway_idle_inhibit_v1_application_inhibitor_for_view(
45 struct sway_view *view);
46
41void sway_idle_inhibit_v1_user_inhibitor_destroy( 47void sway_idle_inhibit_v1_user_inhibitor_destroy(
42 struct sway_idle_inhibitor_v1 *inhibitor); 48 struct sway_idle_inhibitor_v1 *inhibitor);
43 49