xdg-deco: Respect decoration requests properly

Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
Joshua Ashton 2021-10-20 16:03:27 +00:00 committed by Johan Malm
parent 60547cffe6
commit 89f09567f5
3 changed files with 25 additions and 8 deletions

View file

@ -177,6 +177,15 @@ view_toggle_decorations(struct view *view)
ssd_update_geometry(view, true);
}
void
view_set_decorations(struct view *view, bool decorations)
{
if (view->ssd.enabled != decorations) {
view->ssd.enabled = decorations;
ssd_update_geometry(view, true);
}
}
void
view_toggle_fullscreen(struct view *view)
{