summaryrefslogtreecommitdiff
path: root/src/tofi.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-08-07 10:53:59 +0100
committerPhil Jones <philj56@gmail.com>2022-08-07 10:53:59 +0100
commite946ae5a30d4e6e367b05ac82fb96cd7083b7566 (patch)
tree2da670a14e96498d517c1a0efdae12886e5a8625 /src/tofi.h
parentc9f1daea03a41c0cad56453e1dcc50f6133f19c6 (diff)
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.
Diffstat (limited to 'src/tofi.h')
-rw-r--r--src/tofi.h6
1 files changed, 6 insertions, 0 deletions
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;