mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
src/ssd/ssd.c: Keep view->margin in sync when toggling decorations
Fixes #409
This commit is contained in:
parent
ef3dbbf29a
commit
09915b8f43
5 changed files with 8 additions and 19 deletions
|
|
@ -329,7 +329,7 @@ map(struct view *view)
|
|||
if (!view->been_mapped) {
|
||||
view->ssd.enabled = want_deco(view);
|
||||
if (view->ssd.enabled) {
|
||||
view->margin = ssd_thickness(view);
|
||||
ssd_create(view);
|
||||
}
|
||||
|
||||
if (!view->maximized && !view->fullscreen) {
|
||||
|
|
@ -341,11 +341,6 @@ map(struct view *view)
|
|||
}
|
||||
|
||||
view_discover_output(view);
|
||||
|
||||
if (view->ssd.enabled) {
|
||||
/* Create ssd after view_disover_output() had been called */
|
||||
ssd_create(view);
|
||||
}
|
||||
view->been_mapped = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue