Add basic server decorations support

This commit is contained in:
Drew DeVault 2018-04-07 13:21:07 -04:00
parent b12b848bdc
commit 5d34e4531f
1 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,7 @@
#include <wlr/types/wlr_layer_shell.h>
#include <wlr/types/wlr_primary_selection.h>
#include <wlr/types/wlr_screenshooter.h>
#include <wlr/types/wlr_server_decoration.h>
#include <wlr/types/wlr_xcursor_manager.h>
#include <wlr/types/wlr_xdg_output.h>
#include <wlr/types/wlr_wl_shell.h>
@ -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);