Open new views on output where cursor is

This commit is contained in:
Johan Malm 2021-07-13 21:50:02 +01:00
parent eaed1a3cab
commit 69f0f68cc2
4 changed files with 16 additions and 1 deletions

View file

@ -159,6 +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;
view_center(view);
view->been_mapped = true;
}