From d04bc6ab10345f842cc05cb98959ad8b5db569f0 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 7 Feb 2022 19:35:52 +0100 Subject: config: move structs and enums used by config from terminal.h -> config.h --- config.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index 2f318d1d..a329af70 100644 --- a/config.h +++ b/config.h @@ -4,11 +4,11 @@ #include #include +#include #include +#include -#include "terminal.h" #include "user-notification.h" -#include "wayland.h" #define DEFINE_LIST(type) \ type##_list { \ @@ -16,6 +16,14 @@ type *arr; \ } +/* If px != 0 then px is valid, otherwise pt is valid */ +struct pt_or_px { + int16_t px; + float pt; +}; + +enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BEAM }; + enum conf_size_type {CONF_SIZE_PX, CONF_SIZE_CELLS}; struct config_font { -- cgit v1.3