mirror of
https://github.com/labwc/labwc.git
synced 2026-02-22 01:40:25 -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
|
|
@ -998,3 +998,12 @@ output_from_wlr_output(struct server *server, struct wlr_output *wlr_output)
|
|||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct wlr_box *
|
||||
output_box_from_cursor_coords(struct server *server)
|
||||
{
|
||||
struct wlr_output *wlr_output;
|
||||
wlr_output = wlr_output_layout_output_at(server->output_layout,
|
||||
server->seat.cursor->x, server->seat.cursor->y);
|
||||
return wlr_output_layout_get_box(server->output_layout, wlr_output);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue