mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-11-17 06:59:49 -05:00
layer_shell: Implement handle_layer_shell_v1_surface_new
This commit is contained in:
parent
b5603ca82a
commit
956b308d9e
2 changed files with 89 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue