mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
xwayland-shell: center view on first map
This commit is contained in:
parent
3034da776b
commit
08429c5ba3
1 changed files with 5 additions and 0 deletions
|
|
@ -157,6 +157,11 @@ map(struct view *view)
|
|||
ssd_create(view);
|
||||
}
|
||||
|
||||
if (!view->been_mapped) {
|
||||
view_center(view);
|
||||
view->been_mapped = true;
|
||||
}
|
||||
|
||||
top_left_edge_boundary_check(view);
|
||||
|
||||
/* Add commit here, as xwayland map/unmap can change the wlr_surface */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue