diff options
Diffstat (limited to 'include/sway/config.h')
| -rw-r--r-- | include/sway/config.h | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/include/sway/config.h b/include/sway/config.h index a0113e98..db942c3f 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -304,7 +304,7 @@ struct sway_config {  	enum sway_container_layout default_orientation;  	enum sway_container_layout default_layout;  	char *font; -	int font_height; +	size_t font_height;  	// Flags  	bool focus_follows_mouse; @@ -461,6 +461,13 @@ struct bar_config *default_bar_config(void);  void free_bar_config(struct bar_config *bar); +/** + * Updates the value of config->font_height based on the max title height + * reported by each container. If recalculate is true, the containers will + * recalculate their heights before reporting. + */ +void config_find_font_height(bool recalculate); +  /* Global config singleton. */  extern struct sway_config *config; | 
