Added wlr-layer-shell support

This commit is contained in:
Keith Bowes 2022-01-30 17:37:54 -05:00
parent 1bf513d9d6
commit ef73951ce0
8 changed files with 381 additions and 9 deletions

View file

@ -5,7 +5,6 @@
#define _POSIX_C_SOURCE 200112L
#endif
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
@ -21,6 +20,8 @@ struct wb_output {
struct wlr_xdg_output_manager_v1 *manager;
struct wl_list layers[4];
struct wl_listener destroy;
struct wl_listener frame;

View file

@ -27,6 +27,7 @@
#include "waybox/cursor.h"
#include "decoration.h"
#include "layer_shell.h"
#include "waybox/output.h"
#include "waybox/seat.h"
@ -36,7 +37,7 @@ struct wb_server {
struct wlr_allocator *allocator;
struct wlr_backend *backend;
struct wlr_compositor *compositor;
struct wlr_output_layout *layout;
struct wlr_output_layout *output_layout;
struct wlr_renderer *renderer;
struct wb_cursor *cursor;
@ -48,7 +49,10 @@ struct wb_server {
uint32_t resize_edges;
struct wl_list views;
struct wlr_layer_shell_v1 *layer_shell;
struct wlr_xdg_shell *xdg_shell;
struct wl_listener new_layer_surface;
struct wl_listener new_xdg_surface;
struct wl_listener new_xdg_decoration;