mirror of
https://github.com/labwc/labwc.git
synced 2026-03-21 05:33:52 -04:00
xdg: use "usable_area" when positioning view
This commit is contained in:
parent
0eac290d54
commit
22f5073ebd
5 changed files with 34 additions and 35 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue