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

@ -224,6 +224,9 @@ static void
position_xdg_toplevel_view(struct view *view)
{
if (istopmost(view)) {
struct wlr_box *box = output_box_from_cursor_coords(view->server);
view->x = box->x;
view->y = box->y;
view->w = view->xdg_surface->geometry.width;
view->h = view->xdg_surface->geometry.height;
view_center(view);