decorations: refactor view_set_decorations

This commit is contained in:
Tobias Bengfort 2024-04-18 09:46:36 +02:00 committed by Johan Malm
parent bab1be834d
commit a0debda142
8 changed files with 88 additions and 51 deletions

View file

@ -599,7 +599,11 @@ xdg_toplevel_view_map(struct view *view)
init_foreign_toplevel(view);
view_set_decorations(view, has_ssd(view));
if (has_ssd(view)) {
view_set_ssd_mode(view, LAB_SSD_MODE_FULL);
} else {
view_set_ssd_mode(view, LAB_SSD_MODE_NONE);
}
/*
* Set initial "pending" dimensions (may be modified by