mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
view: Reuse view_set_decorations() in view_toggle_decorations()
This simply deduplicates some near-identical code.
This commit is contained in:
parent
2995d0e8e0
commit
636b38561b
1 changed files with 1 additions and 9 deletions
10
src/view.c
10
src/view.c
|
|
@ -466,15 +466,7 @@ view_toggle_maximize(struct view *view)
|
||||||
void
|
void
|
||||||
view_toggle_decorations(struct view *view)
|
view_toggle_decorations(struct view *view)
|
||||||
{
|
{
|
||||||
if (!view->fullscreen) {
|
view_set_decorations(view, !view->ssd.enabled);
|
||||||
view->ssd.enabled = !view->ssd.enabled;
|
|
||||||
ssd_update_geometry(view);
|
|
||||||
if (view->maximized) {
|
|
||||||
view_apply_maximized_geometry(view);
|
|
||||||
} else if (view->tiled) {
|
|
||||||
view_apply_tiled_geometry(view, NULL);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue