config: support <margin top="" bottom="" left="" right="" output="" />

This commit is contained in:
Johan Malm 2023-06-06 19:52:57 +01:00 committed by Johan Malm
parent 3a9dcd54a7
commit 4a531daef8
5 changed files with 97 additions and 0 deletions

View file

@ -6,6 +6,7 @@
#include <stdio.h>
#include <wayland-server-core.h>
#include "common/border.h"
#include "common/buf.h"
#include "common/font.h"
#include "config/libinput.h"
@ -18,6 +19,12 @@ enum window_switcher_field_content {
LAB_FIELD_TITLE,
};
struct usable_area_override {
struct border margin;
char *output;
struct wl_list link; /* struct rcxml.usable_area_overrides */
};
struct window_switcher_field {
enum window_switcher_field_content content;
int width;
@ -47,6 +54,9 @@ struct rcxml {
/* Pointer to current theme */
struct theme *theme;
/* <margin top="" bottom="" left="" right="" output="" /> */
struct wl_list usable_area_overrides;
/* keyboard */
int repeat_rate;
int repeat_delay;