mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
squash! [wip] Add ToggleShade
Update border size for shaded windows, and do not hide the border.
This commit is contained in:
parent
84e8947900
commit
abb644426f
2 changed files with 2 additions and 2 deletions
|
|
@ -339,7 +339,7 @@ ssd_enable_shade(struct ssd *ssd, bool enable)
|
||||||
if (!ssd) {
|
if (!ssd) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
wlr_scene_node_set_enabled(&ssd->border.tree->node, !enable);
|
ssd_border_update(ssd);
|
||||||
wlr_scene_node_set_enabled(&ssd->extents.tree->node, !enable);
|
wlr_scene_node_set_enabled(&ssd->extents.tree->node, !enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -83,7 +83,7 @@ ssd_border_update(struct ssd *ssd)
|
||||||
struct theme *theme = view->server->theme;
|
struct theme *theme = view->server->theme;
|
||||||
|
|
||||||
int width = view->current.width;
|
int width = view->current.width;
|
||||||
int height = view->current.height;
|
int height = view->shaded ? 0 : view->current.height;
|
||||||
int full_width = width + 2 * theme->border_width;
|
int full_width = width + 2 * theme->border_width;
|
||||||
|
|
||||||
struct ssd_part *part;
|
struct ssd_part *part;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue