mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-17 06:59:43 -05:00
implements the idle_inhibit protocol type
This adds the types/wlr_idle_inhibit_v1 implementation.
This commit is contained in:
parent
088028c570
commit
50d573b2ca
6 changed files with 231 additions and 0 deletions
27
include/wlr/types/wlr_idle_inhibit_v1.h
Normal file
27
include/wlr/types/wlr_idle_inhibit_v1.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#ifndef WLR_TYPES_WLR_IDLE_INHIBIT_V1_H
|
||||
#define WLR_TYPES_WLR_IDLE_INHIBIT_V1_H
|
||||
|
||||
#include <wayland-server.h>
|
||||
|
||||
struct wlr_idle_inhibit_v1 {
|
||||
struct wl_list clients;
|
||||
struct wl_global *global;
|
||||
|
||||
struct wl_listener display_destroy;
|
||||
struct wl_signal new_inhibitor;
|
||||
};
|
||||
|
||||
struct wlr_idle_inhibit_inhibitor_v1 {
|
||||
struct wlr_surface *surface;
|
||||
struct wl_resource *resource;
|
||||
struct wl_listener surface_destroy;
|
||||
|
||||
struct wl_list link; // wlr_idle_inhibit_manager::inhibitors;
|
||||
|
||||
struct wl_signal destroy;
|
||||
};
|
||||
|
||||
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);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue