logo

inaban

Unnamed repository; edit this file 'description' to name the repository.
commit: 045e46eb079aed110cd87003acd89174c045a145
parent: 852e5dc629b6561710f0d9465125ea9d4e673ad8
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 28 Mar 2020 03:58:49 +0100

Disable client-side decorations

Diffstat:

Minaban.c12++++++++++++
Minaban.h1+
2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/inaban.c b/inaban.c @@ -640,6 +640,8 @@ main(int argc, char *argv[]) char *startup_cmdv[] = {NULL}; int startup_cmdc = 0; + struct wlr_server_decoration_manager *server_decoration_manager = NULL; + int c; while((c = getopt(argc, argv, "s:h")) != -1) { @@ -710,6 +712,16 @@ main(int argc, char *argv[]) server.new_xdg_surface.notify = server_new_xdg_surface; wl_signal_add(&server.xdg_shell->events.new_surface, &server.new_xdg_surface); + server_decoration_manager = wlr_server_decoration_manager_create(server.wl_display); + if(!server_decoration_manager) + { + wlr_log(WLR_ERROR, "Unable to create the server decoration manager"); + return 1; + } + + wlr_server_decoration_manager_set_default_mode(server_decoration_manager, + WLR_SERVER_DECORATION_MANAGER_MODE_SERVER); + /* * Creates a cursor, which is a wlroots utility for tracking the cursor * image shown on screen. diff --git a/inaban.h b/inaban.h @@ -17,6 +17,7 @@ #include <wlr/types/wlr_output_layout.h> #include <wlr/types/wlr_pointer.h> #include <wlr/types/wlr_seat.h> +#include <wlr/types/wlr_server_decoration.h> #include <wlr/types/wlr_xcursor_manager.h> #include <wlr/types/wlr_xdg_shell.h> #include <wlr/util/log.h>