aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/desktop/idle_inhibit_v1.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/desktop/idle_inhibit_v1.h')
-rw-r--r--include/sway/desktop/idle_inhibit_v1.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/sway/desktop/idle_inhibit_v1.h b/include/sway/desktop/idle_inhibit_v1.h
new file mode 100644
index 00000000..e5ed8a3d
--- /dev/null
+++ b/include/sway/desktop/idle_inhibit_v1.h
@@ -0,0 +1,28 @@
1#ifndef _SWAY_DESKTOP_IDLE_INHIBIT_V1_H
2#define _SWAY_DESKTOP_IDLE_INHIBIT_V1_H
3#include <wlr/types/wlr_idle_inhibit_v1.h>
4#include <wlr/types/wlr_idle.h>
5#include "sway/server.h"
6
7struct sway_idle_inhibit_manager_v1 {
8 struct wlr_idle_inhibit_manager_v1 *wlr_manager;
9 struct wl_listener new_idle_inhibitor_v1;
10 struct wl_list inhibitors;
11
12 struct wlr_idle *idle;
13};
14
15struct sway_idle_inhibitor_v1 {
16 struct sway_idle_inhibit_manager_v1 *manager;
17 struct sway_view *view;
18
19 struct wl_list link;
20 struct wl_listener destroy;
21};
22
23void idle_inhibit_v1_check_active(
24 struct sway_idle_inhibit_manager_v1 *manager);
25
26struct sway_idle_inhibit_manager_v1 *sway_idle_inhibit_manager_v1_create(
27 struct wl_display *wl_display, struct wlr_idle *idle);
28#endif