aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_idle_inhibit_v1.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/include/wlr/types/wlr_idle_inhibit_v1.h b/include/wlr/types/wlr_idle_inhibit_v1.h
index e8be43c9..43066d1e 100644
--- a/include/wlr/types/wlr_idle_inhibit_v1.h
+++ b/include/wlr/types/wlr_idle_inhibit_v1.h
@@ -3,12 +3,16 @@
#include <wayland-server.h>
-struct wlr_idle_inhibit_v1 {
- struct wl_list clients;
+struct wlr_idle_inhibit_manager_v1 {
+ struct wl_list wl_resources; // wl_resource_get_link
+ struct wl_list inhibitors; // wlr_idle_inhibit_inhibitor_v1::link
struct wl_global *global;
struct wl_listener display_destroy;
- struct wl_signal new_inhibitor;
+
+ struct {
+ struct wl_signal new_inhibitor;
+ } events;
};
struct wlr_idle_inhibit_inhibitor_v1 {
@@ -16,12 +20,14 @@ struct wlr_idle_inhibit_inhibitor_v1 {
struct wl_resource *resource;
struct wl_listener surface_destroy;
- struct wl_list link; // wlr_idle_inhibit_manager::inhibitors;
+ struct wl_list link; // wlr_idle_inhibit_manager_v1::inhibitors;
- struct wl_signal destroy;
+ struct {
+ struct wl_signal destroy;
+ } events;
};
-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);
+struct wlr_idle_inhibit_manager_v1 *wlr_idle_inhibit_v1_create(struct wl_display *display);
+void wlr_idle_inhibit_v1_destroy(struct wlr_idle_inhibit_manager_v1 *idle_inhibit);
#endif