layer_shell: Implement handle_layer_shell_v1_surface_new

This commit is contained in:
Moon Sungjoon 2024-07-15 01:16:10 +09:00 committed by Sungjoon Moon
parent b5603ca82a
commit 956b308d9e
2 changed files with 89 additions and 1 deletions

View file

@ -2,7 +2,26 @@
#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