cage/layer_shell_v1.h

27 lines
659 B
C

#ifndef CG_LAYER_SHELL_V1_H
#define CG_LAYER_SHELL_V1_H
#include <wayland-server-core.h>
#include <wlr/types/wlr_layer_shell_v1.h>
#include <wlr/types/wlr_scene.h>
void handle_layer_shell_v1_surface_new(struct wl_listener *listener, void *data);
struct cg_layer_surface {
struct cg_server *server;
struct wl_list link; // cg_output::layers
struct wl_listener map;
struct wl_listener unmap;
struct wl_listener surface_commit;
// struct wl_listener destroy;
struct wl_listener output_destroy;
struct cg_output *output;
struct wlr_scene_tree *tree;
struct wlr_scene_layer_surface_v1 *scene;
struct wlr_layer_surface_v1 *layer_surface;
};
#endif