mirror of
https://github.com/swaywm/sway.git
synced 2025-11-04 13:29:52 -05:00
Calculate config->font_height based on existing container titles
This commit is contained in:
parent
b667298a0a
commit
55b307cddf
5 changed files with 91 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue