aboutsummaryrefslogtreecommitdiff
path: root/rootston/desktop.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-27 09:28:25 -0400
committerGitHub <noreply@github.com>2017-10-27 09:28:25 -0400
commit4bee96bd301015dd6ceb2087ec07a1cb77c1e5d7 (patch)
tree4700fd262f551442fb2289d808d3a52253d7c1cb /rootston/desktop.c
parent8fb948c109ca5c9b636bf04d248e5bedd3c7eee3 (diff)
parenta43acae0005ec4d635f1477376fad2ff5d12d611 (diff)
Merge pull request #333 from emersion/server-decoration
Add server-decoration protocol
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r--rootston/desktop.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index 315db83a..df92f0ba 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -7,11 +7,13 @@
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_cursor.h>
#include <wlr/types/wlr_gamma_control.h>
+#include <wlr/types/wlr_server_decoration.h>
#include <wlr/types/wlr_output_layout.h>
#include <wlr/types/wlr_wl_shell.h>
#include <wlr/types/wlr_xdg_shell_v6.h>
#include <wlr/util/log.h>
-#include "rootston/desktop.h"
+#include <server-decoration-protocol.h>
+#include "rootston/server.h"
#include "rootston/server.h"
void view_destroy(struct roots_view *view) {
@@ -264,6 +266,11 @@ struct roots_desktop *desktop_create(struct roots_server *server,
server->wl_display);
desktop->screenshooter = wlr_screenshooter_create(server->wl_display,
server->renderer);
+ desktop->server_decoration_manager =
+ wlr_server_decoration_manager_create(server->wl_display);
+ wlr_server_decoration_manager_set_default_mode(
+ desktop->server_decoration_manager,
+ ORG_KDE_KWIN_SERVER_DECORATION_MANAGER_MODE_CLIENT);
return desktop;
}