xdg: use "usable_area" when positioning view

This commit is contained in:
Johan Malm 2021-07-21 22:04:54 +01:00
parent 0eac290d54
commit 22f5073ebd
5 changed files with 34 additions and 35 deletions

View file

@ -159,9 +159,9 @@ map(struct view *view)
if (!view->been_mapped) {
view_maximize(view, false);
struct wlr_box *box = output_box_from_cursor_coords(view->server);
view->x = box->x;
view->y = box->y;
struct wlr_box box = output_usable_area_from_cursor_coords(view->server);
view->x = box.x;
view->y = box.y;
view_center(view);
view->been_mapped = true;
}