aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorMarkus Ongyerth <ongy@ongy.net>2018-02-20 13:41:10 +0100
committerMarkus Ongyerth <ongy@ongy.net>2018-02-20 13:41:10 +0100
commit3016133f91afa162c04b6b26804031a40f8cbfd2 (patch)
treea44effaec38079b843c7aa96197c396206b4aeca /include/wlr
parentbab8c73d3cc57b2cf6b6c6685ea7ebf62772749c (diff)
idle-inhibit: feedback pass
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