aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/config.h')
-rw-r--r--include/sway/config.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index b8327e9c..d6c29fe6 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -486,8 +486,8 @@ struct sway_config {
486 enum sway_container_layout default_orientation; 486 enum sway_container_layout default_orientation;
487 enum sway_container_layout default_layout; 487 enum sway_container_layout default_layout;
488 char *font; 488 char *font;
489 size_t font_height; 489 int font_height;
490 size_t font_baseline; 490 int font_baseline;
491 bool pango_markup; 491 bool pango_markup;
492 int titlebar_border_thickness; 492 int titlebar_border_thickness;
493 int titlebar_h_padding; 493 int titlebar_h_padding;
@@ -696,14 +696,13 @@ void free_bar_binding(struct bar_binding *binding);
696void free_workspace_config(struct workspace_config *wsc); 696void free_workspace_config(struct workspace_config *wsc);
697 697
698/** 698/**
699 * Updates the value of config->font_height based on the max title height 699 * Updates the value of config->font_height based on the metrics for title's
700 * reported by each container. If recalculate is true, the containers will 700 * font as reported by pango.
701 * recalculate their heights before reporting. 701 *
702 *
703 * If the height has changed, all containers will be rearranged to take on the 702 * If the height has changed, all containers will be rearranged to take on the
704 * new size. 703 * new size.
705 */ 704 */
706void config_update_font_height(bool recalculate); 705void config_update_font_height(void);
707 706
708/** 707/**
709 * Convert bindsym into bindcode using the first configured layout. 708 * Convert bindsym into bindcode using the first configured layout.