Calculate config->font_height based on existing container titles

This commit is contained in:
Ryan Dwyer 2018-05-03 15:02:16 +10:00
parent b667298a0a
commit 55b307cddf
5 changed files with 91 additions and 16 deletions

View file

@ -89,6 +89,7 @@ struct sway_container {
struct wlr_texture *title_focused_inactive;
struct wlr_texture *title_unfocused;
struct wlr_texture *title_urgent;
size_t title_height;
struct {
struct wl_signal destroy;
@ -198,4 +199,12 @@ struct sway_container *container_flatten(struct sway_container *container);
void container_update_title_textures(struct sway_container *container);
/**
* Calculate the container's title_height property.
*/
void container_calculate_title_height(struct sway_container *container);
void container_update_title(struct sway_container *container,
const char *new_title);
#endif