output: add list of layers

This commit is contained in:
Jente Hidskes 2020-02-24 20:06:21 +01:00
parent 1ea91900d9
commit c3a3539080
2 changed files with 14 additions and 1 deletions

View file

@ -8,6 +8,14 @@
#include "server.h"
#include "view.h"
/* There exist currently four layers:
* - ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND
* - ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM
* - ZWLR_LAYER_SHELL_V1_LAYER_TOP
* - ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY
*/
#define NUM_LAYERS 4
struct cg_output {
struct cg_server *server;
struct wlr_output *wlr_output;
@ -19,6 +27,7 @@ struct cg_output {
struct wl_listener frame;
struct wl_list link; // cg_server::outputs
struct wl_list layers[NUM_LAYERS]; // cg_layer_surface::link
};
void handle_new_output(struct wl_listener *listener, void *data);