summaryrefslogtreecommitdiff
path: root/include/sway/config.h
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2018-05-03 08:20:27 -0400
committerGitHub <[email protected]>2018-05-03 08:20:27 -0400
commit87e65e5c5b95e1b7c58bd1b722c97ebe0db8b477 (patch)
treee3ca897c922da50ec0fd68ed097acf1b7153f61f /include/sway/config.h
parentf3d0885524f4f1dc568baf21fcc8e387a316703f (diff)
parent58a033d8163c922eff8577b34523418c2c2ab432 (diff)
Merge pull request #1895 from RyanDwyer/show-titles
Render titles
Diffstat (limited to 'include/sway/config.h')
-rw-r--r--include/sway/config.h9
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;