[FIX ME] Adjust view position with window geometry

This commit is contained in:
emersion 2018-07-02 23:08:58 +01:00
parent db4e900789
commit 75a99c1b99
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -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;