squash! [wip] Add ToggleShade

Use "effective" height (0 px) for placing shaded windows
This commit is contained in:
Andrew J. Hesford 2024-01-14 19:55:51 -05:00
parent abb644426f
commit 49d2c25655
5 changed files with 51 additions and 14 deletions

View file

@ -20,7 +20,7 @@ ssd_border_create(struct ssd *ssd)
struct view *view = ssd->view;
struct theme *theme = view->server->theme;
int width = view->current.width;
int height = view->current.height;
int height = view_effective_height(view, false);
int full_width = width + 2 * theme->border_width;
float *color;
@ -83,7 +83,7 @@ ssd_border_update(struct ssd *ssd)
struct theme *theme = view->server->theme;
int width = view->current.width;
int height = view->shaded ? 0 : view->current.height;
int height = view_effective_height(view, false);
int full_width = width + 2 * theme->border_width;
struct ssd_part *part;