aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorMarkus Ongyerth <ongy@ongy.net>2018-02-07 11:10:49 +0100
committerMarkus Ongyerth <ongy@ongy.net>2018-02-17 12:37:12 +0100
commit50d573b2ca68013a32828ae061ac2c242db333c6 (patch)
treeb80c8c7bdade9e0f024f32f5bbdc03f8cf31bf9f /include/wlr
parent088028c570dd5b52f81069654166f0117667fac0 (diff)
implements the idle_inhibit protocol type
This adds the types/wlr_idle_inhibit_v1 implementation.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_idle_inhibit_v1.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_idle_inhibit_v1.h b/include/wlr/types/wlr_idle_inhibit_v1.h
new file mode 100644
index 00000000..e8be43c9
--- /dev/null
+++ b/include/wlr/types/wlr_idle_inhibit_v1.h
@@ -0,0 +1,27 @@
+#ifndef WLR_TYPES_WLR_IDLE_INHIBIT_V1_H
+#define WLR_TYPES_WLR_IDLE_INHIBIT_V1_H
+
+#include <wayland-server.h>
+
+struct wlr_idle_inhibit_v1 {
+ struct wl_list clients;
+ struct wl_global *global;
+
+ struct wl_listener display_destroy;
+ struct wl_signal new_inhibitor;
+};
+
+struct wlr_idle_inhibit_inhibitor_v1 {
+ struct wlr_surface *surface;
+ struct wl_resource *resource;
+ struct wl_listener surface_destroy;
+
+ struct wl_list link; // wlr_idle_inhibit_manager::inhibitors;
+
+ struct wl_signal destroy;
+};
+
+struct wlr_idle_inhibit_v1 *wlr_idle_inhibit_v1_create(struct wl_display *display);
+void wlr_idle_inhibit_v1_destroy(struct wlr_idle_inhibit_v1 *idle_inhibit);
+
+#endif