aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-03-31 11:30:15 -0400
committeremersion <contact@emersion.fr>2018-03-31 11:30:15 -0400
commit98b67e2399df70d1e8354d5641744d1730a60189 (patch)
tree74db4df45a42e0c652b2dc98f2e9f5e2c9e7560c /sway/desktop/output.c
parent0f7936735cfc8224f9926199b7e807e95d86d900 (diff)
Fix xwayland configure in set_size
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 24c0bf40..0d706c52 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -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)) {