diff options
author | Markus Ongyerth <ongy@ongy.net> | 2018-02-20 13:41:10 +0100 |
---|---|---|
committer | Markus Ongyerth <ongy@ongy.net> | 2018-02-20 13:41:10 +0100 |
commit | 3016133f91afa162c04b6b26804031a40f8cbfd2 (patch) | |
tree | a44effaec38079b843c7aa96197c396206b4aeca /include/wlr | |
parent | bab8c73d3cc57b2cf6b6c6685ea7ebf62772749c (diff) |
idle-inhibit: feedback pass
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_idle_inhibit_v1.h | 20 |
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 |