aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree/container.h
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-03 15:02:16 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-03 15:12:00 +1000
commit55b307cddfa453fc003350a642a68735bc36e50e (patch)
tree4cc54f1be82db862fa4896b5da1d52868a273161 /include/sway/tree/container.h
parentRender titles (diff)
downloadsway-55b307cddfa453fc003350a642a68735bc36e50e.tar.gz
sway-55b307cddfa453fc003350a642a68735bc36e50e.tar.zst
sway-55b307cddfa453fc003350a642a68735bc36e50e.zip
Calculate config->font_height based on existing container titles
Diffstat (limited to 'include/sway/tree/container.h')
-rw-r--r--include/sway/tree/container.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index b508f310..b07af72c 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -89,6 +89,7 @@ struct sway_container {
89 struct wlr_texture *title_focused_inactive; 89 struct wlr_texture *title_focused_inactive;
90 struct wlr_texture *title_unfocused; 90 struct wlr_texture *title_unfocused;
91 struct wlr_texture *title_urgent; 91 struct wlr_texture *title_urgent;
92 size_t title_height;
92 93
93 struct { 94 struct {
94 struct wl_signal destroy; 95 struct wl_signal destroy;
@@ -198,4 +199,12 @@ struct sway_container *container_flatten(struct sway_container *container);
198 199
199void container_update_title_textures(struct sway_container *container); 200void container_update_title_textures(struct sway_container *container);
200 201
202/**
203 * Calculate the container's title_height property.
204 */
205void container_calculate_title_height(struct sway_container *container);
206
207void container_update_title(struct sway_container *container,
208 const char *new_title);
209
201#endif 210#endif