mirror of
https://github.com/swaywm/sway.git
synced 2024-12-25 14:36:23 +01:00
container: Properly constrain title bar padding
Important for centered titles
This commit is contained in:
parent
d417a8fcd0
commit
4cfcb3643b
1 changed files with 2 additions and 2 deletions
|
@ -349,7 +349,7 @@ void container_arrange_title_bar(struct sway_container *con) {
|
|||
h_padding = width - config->titlebar_h_padding - marks_buffer_width;
|
||||
}
|
||||
|
||||
h_padding = MAX(h_padding, 0);
|
||||
h_padding = MAX(h_padding, config->titlebar_h_padding);
|
||||
|
||||
int alloc_width = MIN((int)node->width,
|
||||
width - h_padding - config->titlebar_h_padding);
|
||||
|
@ -375,7 +375,7 @@ void container_arrange_title_bar(struct sway_container *con) {
|
|||
h_padding = config->titlebar_h_padding;
|
||||
}
|
||||
|
||||
h_padding = MAX(h_padding, 0);
|
||||
h_padding = MAX(h_padding, config->titlebar_h_padding);
|
||||
|
||||
int alloc_width = MIN((int) node->width,
|
||||
width - h_padding - config->titlebar_h_padding);
|
||||
|
|
Loading…
Reference in a new issue