mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
Open new views on output where cursor is
This commit is contained in:
parent
eaed1a3cab
commit
69f0f68cc2
4 changed files with 16 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue