aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-11 18:37:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-11 18:37:05 +0000
commitdce402ae420d105a8277cf271a2ee5e56606ad95 (patch)
tree964fc44eaf9219b98fea017aab95f71d0d4492e3 /config.h
parentwayland: take rotation into account when calculating the logical PPI (diff)
config: pt_or_px cannot be a union
Diffstat (limited to 'config.h')
-rw-r--r--config.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/config.h b/config.h
index 18b0e0c0..fffc44aa 100644
--- a/config.h
+++ b/config.h
@@ -55,7 +55,7 @@ struct config_mouse_binding {
};
/* If px != 0 then px is valid, otherwise pt is valid */
-union pt_or_px {
+struct pt_or_px {
int16_t px;
float pt;
};
@@ -91,12 +91,12 @@ struct config {
config_font_list_t fonts[4];
/* Custom font metrics (-1 = use real font metrics) */
- union pt_or_px line_height;
- union pt_or_px letter_spacing;
+ struct pt_or_px line_height;
+ struct pt_or_px letter_spacing;
/* Adjusted letter x/y offsets */
- union pt_or_px horizontal_letter_offset;
- union pt_or_px vertical_letter_offset;
+ struct pt_or_px horizontal_letter_offset;
+ struct pt_or_px vertical_letter_offset;
struct {
int lines;