aboutsummaryrefslogtreecommitdiff
path: root/include/sway/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/desktop')
-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 {
struct wl_listener destroy;
};
+bool sway_idle_inhibit_v1_is_active(
+ struct sway_idle_inhibitor_v1 *inhibitor);
+
void sway_idle_inhibit_v1_check_active(
struct sway_idle_inhibit_manager_v1 *manager);
@@ -38,6 +41,9 @@ void sway_idle_inhibit_v1_user_inhibitor_register(struct sway_view *view,
struct sway_idle_inhibitor_v1 *sway_idle_inhibit_v1_user_inhibitor_for_view(
struct sway_view *view);
+struct sway_idle_inhibitor_v1 *sway_idle_inhibit_v1_application_inhibitor_for_view(
+ struct sway_view *view);
+
void sway_idle_inhibit_v1_user_inhibitor_destroy(
struct sway_idle_inhibitor_v1 *inhibitor);