xwayland-shell: center view on first map

This commit is contained in:
Johan Malm 2021-07-09 21:45:38 +01:00
parent 3034da776b
commit 08429c5ba3

View file

@ -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 */