mirror of
https://github.com/swaywm/sway.git
synced 2026-04-17 06:46:32 -04:00
swaynag: account for height of lower border
This draws the lower border below the message and buttons instead of slightly overlapping them when bar_border_thickness is large.
This commit is contained in:
parent
03483ff370
commit
2535a2e9f9
1 changed files with 2 additions and 4 deletions
|
|
@ -235,12 +235,10 @@ static uint32_t render_to_cairo(cairo_t *cairo, struct swaynag *swaynag) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int border = swaynag->type->bar_border_thickness;
|
int border = swaynag->type->bar_border_thickness;
|
||||||
if (max_height > swaynag->height) {
|
max_height += border;
|
||||||
max_height += border;
|
|
||||||
}
|
|
||||||
cairo_set_source_u32(cairo, swaynag->type->border_bottom);
|
cairo_set_source_u32(cairo, swaynag->type->border_bottom);
|
||||||
cairo_rectangle(cairo, 0,
|
cairo_rectangle(cairo, 0,
|
||||||
swaynag->height - border,
|
max_height - border,
|
||||||
swaynag->width,
|
swaynag->width,
|
||||||
border);
|
border);
|
||||||
cairo_fill(cairo);
|
cairo_fill(cairo);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue