mirror of
https://github.com/labwc/labwc.git
synced 2026-04-13 08:21:15 -04:00
squash! [wip] Add ToggleShade
Use "effective" height (0 px) for placing shaded windows
This commit is contained in:
parent
abb644426f
commit
49d2c25655
5 changed files with 51 additions and 14 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue