mirror of
https://github.com/labwc/labwc.git
synced 2025-11-14 06:59:54 -05:00
src/xwayland.c: keep SSD state on unmap/map cycle
Move SSD related map() work into the !view->been_mapped branch, similar to src/xdg.c. Without this patch following series of events restores the initial state of the SSD when activating the view: - spawn xcalc - observe it shows the SSD - toggleDecorations to hide the SSD (via keybinding or window menu) - minimize xcalc (via some panel or A-Space) - activate xcalc (via some panel or A-Tab) - observe the SSD is back visible
This commit is contained in:
parent
0f54974430
commit
fbbe273155
1 changed files with 11 additions and 11 deletions
|
|
@ -308,13 +308,13 @@ map(struct view *view)
|
|||
}
|
||||
}
|
||||
|
||||
view->ssd.enabled = want_deco(view);
|
||||
|
||||
if (view->ssd.enabled) {
|
||||
view->margin = ssd_thickness(view);
|
||||
}
|
||||
|
||||
if (!view->been_mapped) {
|
||||
|
||||
view->ssd.enabled = want_deco(view);
|
||||
if (view->ssd.enabled) {
|
||||
view->margin = ssd_thickness(view);
|
||||
}
|
||||
|
||||
foreign_toplevel_handle_create(view);
|
||||
|
||||
if (!view->maximized && !view->fullscreen) {
|
||||
|
|
@ -326,12 +326,12 @@ map(struct view *view)
|
|||
}
|
||||
|
||||
view_discover_output(view);
|
||||
view->been_mapped = true;
|
||||
}
|
||||
|
||||
if (view->ssd.enabled) {
|
||||
/* Create ssd after view_disover_output() had been called */
|
||||
ssd_create(view);
|
||||
if (view->ssd.enabled) {
|
||||
/* Create ssd after view_disover_output() had been called */
|
||||
ssd_create(view);
|
||||
}
|
||||
view->been_mapped = true;
|
||||
}
|
||||
|
||||
if (view->ssd.enabled && !view->fullscreen && !view->maximized) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue