mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
layers: only define LAB_NR_LAYERS locally where needed
This commit is contained in:
parent
98d5fd483d
commit
d3918eec0a
4 changed files with 8 additions and 6 deletions
|
|
@ -188,13 +188,14 @@ struct server {
|
|||
struct menu *menu_current;
|
||||
};
|
||||
|
||||
#define LAB_NR_LAYERS (4)
|
||||
struct output {
|
||||
struct wl_list link; /* server::outputs */
|
||||
struct server *server;
|
||||
struct wlr_output *wlr_output;
|
||||
struct wlr_scene_output *scene_output;
|
||||
struct wl_list layers[4];
|
||||
struct wlr_scene_tree *layer_tree[4];
|
||||
struct wl_list layers[LAB_NR_LAYERS];
|
||||
struct wlr_scene_tree *layer_tree[LAB_NR_LAYERS];
|
||||
struct wlr_box usable_area;
|
||||
|
||||
struct lab_data_buffer *osd_buffer;
|
||||
|
|
@ -202,6 +203,7 @@ struct output {
|
|||
struct wl_listener destroy;
|
||||
struct wl_listener frame;
|
||||
};
|
||||
#undef LAB_NR_LAYERS
|
||||
|
||||
enum view_type {
|
||||
LAB_XDG_SHELL_VIEW,
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@
|
|||
struct server;
|
||||
struct output;
|
||||
|
||||
#define LAB_NR_LAYERS (4)
|
||||
|
||||
struct lab_layer_surface {
|
||||
struct wl_list link; /* output::layers */
|
||||
struct wlr_scene_layer_surface_v1 *scene_layer_surface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue