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/entry.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/entry.h') diff --git a/src/entry.h b/src/entry.h index 45865af..2dfa47e 100644 --- a/src/entry.h +++ b/src/entry.h @@ -61,6 +61,10 @@ struct entry { uint32_t padding_bottom; uint32_t padding_left; uint32_t padding_right; + bool padding_top_is_percent; + bool padding_bottom_is_percent; + bool padding_left_is_percent; + bool padding_right_is_percent; int32_t selection_background_padding; uint32_t input_width; uint32_t border_width; -- cgit v1.2.3