aboutsummaryrefslogtreecommitdiff
path: root/rootston/desktop.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-10-27 00:02:30 +0200
committeremersion <contact@emersion.fr>2017-10-27 00:02:30 +0200
commita43acae0005ec4d635f1477376fad2ff5d12d611 (patch)
tree13d3868e68cc1a0d03338feaf1289055a862e816 /rootston/desktop.c
parente84d573b9127a431671e1f74773aee53830f8d09 (diff)
Send server-decoration ack event automatically
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 40d088b8..a9d38353 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) {
@@ -252,6 +254,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;
}