1 /*
2  * This an unstable interface of wlroots. No guarantees are made regarding the
3  * future consistency of this API.
4  */
5 #ifndef WLR_USE_UNSTABLE
6 #error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
7 #endif
8 
9 #ifndef WLR_TYPES_INPUT_INHIBITOR_H
10 #define WLR_TYPES_INPUT_INHIBITOR_H
11 #include <wayland-server-core.h>
12 
13 struct wlr_input_inhibit_manager {
14 	struct wl_global *global;
15 	struct wl_client *active_client;
16 	struct wl_resource *active_inhibitor;
17 
18 	struct wl_listener display_destroy;
19 
20 	struct {
21 		struct wl_signal activate;   // struct wlr_input_inhibit_manager *
22 		struct wl_signal deactivate; // struct wlr_input_inhibit_manager *
23 		struct wl_signal destroy;
24 	} events;
25 
26 	void *data;
27 };
28 
29 struct wlr_input_inhibit_manager *wlr_input_inhibit_manager_create(
30 		struct wl_display *display);
31 
32 #endif
33