mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
ssd: show squared corners when the view is tiled
This commit is contained in:
parent
f2755a4e2e
commit
98347e454e
3 changed files with 23 additions and 6 deletions
|
|
@ -246,7 +246,7 @@ ssd_update_geometry(struct ssd *ssd)
|
|||
ssd_extents_update(ssd);
|
||||
ssd->state.geometry = current;
|
||||
}
|
||||
bool maximized = (ssd->view->maximized == VIEW_AXIS_BOTH);
|
||||
bool maximized = ssd->view->maximized == VIEW_AXIS_BOTH;
|
||||
if (ssd->state.was_maximized != maximized) {
|
||||
ssd_border_update(ssd);
|
||||
ssd_titlebar_update(ssd);
|
||||
|
|
@ -258,6 +258,12 @@ ssd_update_geometry(struct ssd *ssd)
|
|||
*/
|
||||
ssd->state.was_maximized = maximized;
|
||||
}
|
||||
bool tiled_and_not_maximized = view_is_tiled(ssd->view) && !maximized;
|
||||
if (ssd->state.was_tiled_not_maximized != tiled_and_not_maximized) {
|
||||
ssd_titlebar_update(ssd);
|
||||
/* see above about being future proof */
|
||||
ssd->state.was_tiled_not_maximized = tiled_and_not_maximized;
|
||||
}
|
||||
return;
|
||||
}
|
||||
ssd_extents_update(ssd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue