mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
xwayland: center stored natural geometry for initially maximized views
For views that are initially maximized or fullscreen and have no explicitly specified position, we need to center the stored natural geometry, or the view may end up partially offscreen once unmaximized/ unfullscreened.
This commit is contained in:
parent
45a4b3c047
commit
a1324c8cdc
3 changed files with 27 additions and 8 deletions
|
|
@ -539,7 +539,7 @@ view_minimize(struct view *view, bool minimized)
|
|||
minimize_sub_views(root, minimized);
|
||||
}
|
||||
|
||||
static bool
|
||||
bool
|
||||
view_compute_centered_position(struct view *view, const struct wlr_box *ref,
|
||||
int w, int h, int *x, int *y)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue