Add partial support for layer-shell

We can now run swaybg and waybar
This commit is contained in:
Johan Malm 2020-09-30 17:18:20 +01:00
parent 00adc7ed34
commit a4c22f7c4d
7 changed files with 426 additions and 1 deletions

View file

@ -9,6 +9,7 @@
#include <wlr/types/wlr_gamma_control_v1.h>
#include <wlr/types/wlr_primary_selection_v1.h>
#include <wlr/types/wlr_screencopy_v1.h>
#include "layers.h"
static struct wlr_compositor *compositor;
static struct wl_event_source *sighup_source;
@ -242,6 +243,8 @@ server_init(struct server *server)
wlr_gamma_control_manager_v1_create(server->wl_display);
wlr_primary_selection_v1_device_manager_create(server->wl_display);
layers_init(server);
/* Init xwayland */
server->xwayland =
wlr_xwayland_create(server->wl_display, compositor, false);