aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
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,
247 continue; 247 continue;
248 } 248 }
249 249
250 struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface;
251
250 const struct wlr_box view_box = { 252 const struct wlr_box view_box = {
251 .x = view->wlr_xwayland_surface->x, 253 .x = xsurface->x,
252 .y = view->wlr_xwayland_surface->y, 254 .y = xsurface->y,
253 .width = view->wlr_xwayland_surface->width, 255 .width = xsurface->width,
254 .height = view->wlr_xwayland_surface->height, 256 .height = xsurface->height,
255 }; 257 };
256 struct wlr_box intersection; 258 struct wlr_box intersection;
257 if (!wlr_box_intersection(&view_box, output_box, &intersection)) { 259 if (!wlr_box_intersection(&view_box, output_box, &intersection)) {