src/ssd/ssd.c: Keep view->margin in sync when toggling decorations

Fixes #409
This commit is contained in:
Consolatis 2022-06-28 19:42:40 +02:00 committed by Johan Malm
parent ef3dbbf29a
commit 09915b8f43
5 changed files with 8 additions and 19 deletions

View file

@ -298,7 +298,6 @@ xdg_toplevel_view_map(struct view *view)
view->ssd.enabled = has_ssd(view);
if (view->ssd.enabled) {
view->margin = ssd_thickness(view);
ssd_create(view);
}
@ -311,7 +310,6 @@ xdg_toplevel_view_map(struct view *view)
}
view_discover_output(view);
view->been_mapped = true;
}