diff options
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/desktop/idle_inhibit_v1.h | 6 | ||||
-rw-r--r-- | include/sway/tree/view.h | 2 |
2 files changed, 8 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 | ||
32 | bool sway_idle_inhibit_v1_is_active( | ||
33 | struct sway_idle_inhibitor_v1 *inhibitor); | ||
34 | |||
32 | void sway_idle_inhibit_v1_check_active( | 35 | void 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, | |||
38 | struct sway_idle_inhibitor_v1 *sway_idle_inhibit_v1_user_inhibitor_for_view( | 41 | struct sway_idle_inhibitor_v1 *sway_idle_inhibit_v1_user_inhibitor_for_view( |
39 | struct sway_view *view); | 42 | struct sway_view *view); |
40 | 43 | ||
44 | struct sway_idle_inhibitor_v1 *sway_idle_inhibit_v1_application_inhibitor_for_view( | ||
45 | struct sway_view *view); | ||
46 | |||
41 | void sway_idle_inhibit_v1_user_inhibitor_destroy( | 47 | void sway_idle_inhibit_v1_user_inhibitor_destroy( |
42 | struct sway_idle_inhibitor_v1 *inhibitor); | 48 | struct sway_idle_inhibitor_v1 *inhibitor); |
43 | 49 | ||
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 9230f456..ab2dc8e4 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h | |||
@@ -232,6 +232,8 @@ void view_get_constraints(struct sway_view *view, double *min_width, | |||
232 | uint32_t view_configure(struct sway_view *view, double lx, double ly, int width, | 232 | uint32_t view_configure(struct sway_view *view, double lx, double ly, int width, |
233 | int height); | 233 | int height); |
234 | 234 | ||
235 | bool view_inhibit_idle(struct sway_view *view); | ||
236 | |||
235 | /** | 237 | /** |
236 | * Whether or not the view is the only visible view in its tree. If the view | 238 | * Whether or not the view is the only visible view in its tree. If the view |
237 | * is tiling, there may be floating views. If the view is floating, there may | 239 | * is tiling, there may be floating views. If the view is floating, there may |