From 5d34e4531f03c194fd2b3717fd4cc4a802ada7aa Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 7 Apr 2018 13:21:07 -0400 Subject: [PATCH] Add basic server decorations support --- sway/server.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sway/server.c b/sway/server.c index dfd017985..0e98b5f92 100644 --- a/sway/server.c +++ b/sway/server.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -104,6 +105,12 @@ bool server_init(struct sway_server *server) { image->hotspot_y); } + // TODO: Integration with sway borders + struct wlr_server_decoration_manager *deco_manager = + wlr_server_decoration_manager_create(server->wl_display); + wlr_server_decoration_manager_set_default_mode( + deco_manager, WLR_SERVER_DECORATION_MANAGER_MODE_SERVER); + struct wlr_egl *egl = wlr_backend_get_egl(server->backend); wlr_linux_dmabuf_create(server->wl_display, egl);