mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-24 06:59:45 -05:00
surface-suspension-v1: new protocol implementation
This commit is contained in:
parent
1ef5344710
commit
cf501a8f6c
3 changed files with 241 additions and 0 deletions
37
include/wlr/types/wlr_surface_suspension_v1.h
Normal file
37
include/wlr/types/wlr_surface_suspension_v1.h
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* This an unstable interface of wlroots. No guarantees are made regarding the
|
||||
* future consistency of this API.
|
||||
*/
|
||||
#ifndef WLR_USE_UNSTABLE
|
||||
#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
|
||||
#endif
|
||||
|
||||
#ifndef WLR_TYPES_WLR_SURFACE_SUSPENSION_V1
|
||||
#define WLR_TYPES_WLR_SURFACE_SUSPENSION_V1
|
||||
|
||||
#include <wayland-server-core.h>
|
||||
|
||||
struct wlr_surface;
|
||||
|
||||
struct wlr_surface_suspension_manager_v1 {
|
||||
struct wl_global *global;
|
||||
|
||||
struct {
|
||||
struct wl_signal destroy;
|
||||
} events;
|
||||
|
||||
// private state
|
||||
|
||||
struct wl_list surfaces;
|
||||
|
||||
struct wl_listener display_destroy;
|
||||
};
|
||||
|
||||
struct wlr_surface_suspension_manager_v1 *
|
||||
wlr_surface_suspension_manager_v1_create(struct wl_display *display);
|
||||
|
||||
void wlr_surface_suspension_manager_v1_set_suspended(
|
||||
struct wlr_surface_suspension_manager_v1 *manager,
|
||||
struct wlr_surface *surface, bool suspended);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue