container: Only give a titlebar height for normal borders

Closes: https://github.com/swaywm/sway/issues/7409
This commit is contained in:
Haelwenn (lanodan) Monnier 2024-04-04 00:30:18 +02:00
parent dcb142bf5e
commit 375eb9abb9
8 changed files with 21 additions and 16 deletions

View file

@ -193,7 +193,7 @@ void container_update_representation(struct sway_container *container);
/**
* Return the height of a regular title bar.
*/
size_t container_titlebar_height(void);
size_t container_titlebar_height(struct sway_container *container);
void floating_calculate_constraints(int *min_width, int *max_width,
int *min_height, int *max_height);