From e946ae5a30d4e6e367b05ac82fb96cd7083b7566 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sun, 7 Aug 2022 10:53:59 +0100 Subject: Delay scaling of percentage values. The config file code now delays calculation of percentage values until `config_fix_percentages()` is called. This allows the config file to be parsed before output configuration is complete, thus allowing `--output` and `--late-keyboard-init` to be specified in the config file. --- src/tofi.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/tofi.h') diff --git a/src/tofi.h b/src/tofi.h index bb677a0..1771ecd 100644 --- a/src/tofi.h +++ b/src/tofi.h @@ -60,6 +60,12 @@ struct tofi { int32_t margin_bottom; int32_t margin_left; int32_t margin_right; + bool width_is_percent; + bool height_is_percent; + bool margin_top_is_percent; + bool margin_bottom_is_percent; + bool margin_left_is_percent; + bool margin_right_is_percent; } window; struct { uint32_t rate; -- cgit v1.2.3