mirror of
https://github.com/swaywm/sway.git
synced 2026-05-03 06:46:26 -04:00
[FIX ME] Adjust view position with window geometry
This commit is contained in:
parent
db4e900789
commit
75a99c1b99
1 changed files with 5 additions and 0 deletions
|
|
@ -288,6 +288,11 @@ void view_autoconfigure(struct sway_view *view) {
|
|||
break;
|
||||
}
|
||||
|
||||
struct wlr_box geo;
|
||||
view_get_geometry(view, &geo);
|
||||
x -= geo.x;
|
||||
y -= geo.y;
|
||||
|
||||
view->x = x;
|
||||
view->y = y;
|
||||
view->width = width;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue