Fix xwayland configure in set_size

This commit is contained in:
emersion 2018-03-31 11:30:15 -04:00
parent 0f7936735c
commit 98b67e2399
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 25 additions and 21 deletions

View file

@ -247,11 +247,13 @@ static void render_output(struct sway_output *output, struct timespec *when,
continue;
}
struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface;
const struct wlr_box view_box = {
.x = view->wlr_xwayland_surface->x,
.y = view->wlr_xwayland_surface->y,
.width = view->wlr_xwayland_surface->width,
.height = view->wlr_xwayland_surface->height,
.x = xsurface->x,
.y = xsurface->y,
.width = xsurface->width,
.height = xsurface->height,
};
struct wlr_box intersection;
if (!wlr_box_intersection(&view_box, output_box, &intersection)) {