mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
view: Enable/disable decorations explicitly
`view_set_decorations()` now calls `ssd_create()` and `ssd_destroy()` explicitly to enable/disable decorations. As a result, the implicit enable/disable logic in `ssd_update_geometry()` is no longer needed.
This commit is contained in:
parent
4906d1833a
commit
b150e11cd3
2 changed files with 6 additions and 17 deletions
|
|
@ -556,8 +556,12 @@ view_set_decorations(struct view *view, bool decorations)
|
|||
{
|
||||
assert(view);
|
||||
if (view->ssd_enabled != decorations && !view->fullscreen) {
|
||||
if (decorations) {
|
||||
ssd_create(view);
|
||||
} else {
|
||||
ssd_destroy(view);
|
||||
}
|
||||
view->ssd_enabled = decorations;
|
||||
ssd_update_geometry(view);
|
||||
if (view->maximized) {
|
||||
view_apply_maximized_geometry(view);
|
||||
} else if (view->tiled) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue