aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/rootston/desktop.h2
-rw-r--r--include/wlr/types/wlr_idle_inhibit_v1.h20
2 files changed, 14 insertions, 8 deletions
diff --git a/include/rootston/desktop.h b/include/rootston/desktop.h
index de9f117a..ab3ae61a 100644
--- a/include/rootston/desktop.h
+++ b/include/rootston/desktop.h
@@ -45,7 +45,7 @@ struct roots_desktop {
struct wlr_server_decoration_manager *server_decoration_manager;
struct wlr_primary_selection_device_manager *primary_selection_device_manager;
struct wlr_idle *idle;
- struct wlr_idle_inhibit_v1 *idle_inhibit;
+ struct wlr_idle_inhibit_manager_v1 *idle_inhibit;
struct wl_listener new_output;
struct wl_listener layout_change;
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