Read rc.xml and begin parsing

This commit is contained in:
Johan Malm 2020-06-05 23:04:54 +01:00
parent fdc131049c
commit 6166e9b370
12 changed files with 227 additions and 7 deletions

View file

@ -1,4 +1,5 @@
#include "labwc.h"
#include "rcxml.h"
struct xdg_deco {
struct wlr_xdg_toplevel_decoration_v1 *wlr_decoration;
@ -22,7 +23,7 @@ static void xdg_deco_request_mode(struct wl_listener *listener, void *data)
struct xdg_deco *xdg_deco;
xdg_deco = wl_container_of(listener, xdg_deco, request_mode);
enum wlr_xdg_toplevel_decoration_v1_mode mode;
if (LAB_DISABLE_CSD)
if (!rc.client_side_decorations)
mode = WLR_XDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE;
else
mode = WLR_XDG_TOPLEVEL_DECORATION_V1_MODE_CLIENT_SIDE;