aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-11-13 10:04:54 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-11-13 10:04:54 +0000
commite026ef22f4315a029ddf77296718568ef05f0248 (patch)
tree998bbdddb64729a37bae52c2c02e890138122898 /config.h
parentmain: improve handling of setlocale(3) return value (diff)
parentchangelog: boolean options (diff)
Merge branch 'config-refactor'
Diffstat (limited to 'config.h')
-rw-r--r--config.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/config.h b/config.h
index b47c3537..f0f95035 100644
--- a/config.h
+++ b/config.h
@@ -19,7 +19,7 @@ enum conf_size_type {CONF_SIZE_PX, CONF_SIZE_CELLS};
struct config_font {
char *pattern;
- double pt_size;
+ float pt_size;
int px_size;
};
DEFINE_LIST(struct config_font);
@@ -74,8 +74,8 @@ struct config {
struct {
enum conf_size_type type;
- unsigned width;
- unsigned height;
+ uint32_t width;
+ uint32_t height;
} size;
unsigned pad_x;
@@ -115,7 +115,7 @@ struct config {
} bell;
struct {
- int lines;
+ uint32_t lines;
struct {
enum {
@@ -132,7 +132,7 @@ struct config {
wchar_t *text;
} indicator;
- double multiplier;
+ float multiplier;
} scrollback;
struct {
@@ -212,10 +212,10 @@ struct config {
struct {
enum { CONF_CSD_PREFER_NONE, CONF_CSD_PREFER_SERVER, CONF_CSD_PREFER_CLIENT } preferred;
- int title_height;
- int border_width;
- int border_width_visible;
- int button_width;
+ uint16_t title_height;
+ uint16_t border_width;
+ uint16_t border_width_visible;
+ uint16_t button_width;
struct {
bool title_set:1;
@@ -235,7 +235,7 @@ struct config {
struct config_font_list font;
} csd;
- size_t render_worker_count;
+ uint16_t render_worker_count;
char *server_socket_path;
bool presentation_timings;
bool hold_at_exit;
@@ -257,8 +257,8 @@ struct config {
bool render_timer_osd;
bool render_timer_log;
bool damage_whole_window;
- uint64_t delayed_render_lower_ns;
- uint64_t delayed_render_upper_ns;
+ uint32_t delayed_render_lower_ns;
+ uint32_t delayed_render_upper_ns;
off_t max_shm_pool_size;
float box_drawing_base_thickness;
bool box_drawing_solid_shades;