src/ssd: disable border on maximize

Fixes #1044
This commit is contained in:
Consolatis 2023-08-23 01:04:40 +02:00
parent 206db43786
commit 10f22a8f5b
3 changed files with 40 additions and 6 deletions

View file

@ -27,6 +27,15 @@ ssd_thickness(struct view *view)
}
struct theme *theme = view->server->theme;
if (view->maximized) {
struct border thickness = { 0 };
if (!ssd_titlebar_is_hidden(view->ssd)) {
thickness.top += theme->title_height;
}
return thickness;
}
struct border thickness = {
.top = theme->title_height + theme->border_width,
.bottom = theme->border_width,