summaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-04-05 18:48:35 -0400
committerLibravatar emersion <contact@emersion.fr>2018-04-05 18:48:35 -0400
commit641807d920854fdecc1307bd809c198db1a7dff1 (patch)
treea275dc0046e90f7b2eb4ee3195e9f44976757165 /sway/desktop/output.c
parentFix desktop_damage_whole_surface (diff)
downloadsway-641807d920854fdecc1307bd809c198db1a7dff1.tar.gz
sway-641807d920854fdecc1307bd809c198db1a7dff1.tar.zst
sway-641807d920854fdecc1307bd809c198db1a7dff1.zip
Handle unmanaged surfaces motion
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index a7f40ef8..aa18f1b8 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -267,17 +267,14 @@ static void render_output(struct sway_output *output, struct timespec *when,
267 267
268 // render unmanaged views on top 268 // render unmanaged views on top
269 struct wl_list *unmanaged = &root_container.sway_root->xwayland_unmanaged; 269 struct wl_list *unmanaged = &root_container.sway_root->xwayland_unmanaged;
270 struct sway_xwayland_unmanaged *sway_surface; 270 struct sway_xwayland_unmanaged *unmanaged_surface;
271 wl_list_for_each(sway_surface, unmanaged, link) { 271 wl_list_for_each(unmanaged_surface, unmanaged, link) {
272 struct wlr_xwayland_surface *xsurface = 272 struct wlr_xwayland_surface *xsurface =
273 sway_surface->wlr_xwayland_surface; 273 unmanaged_surface->wlr_xwayland_surface;
274 if (xsurface->surface == NULL) {
275 continue;
276 }
277 274
278 const struct wlr_box view_box = { 275 const struct wlr_box view_box = {
279 .x = xsurface->x, 276 .x = unmanaged_surface->lx,
280 .y = xsurface->y, 277 .y = unmanaged_surface->ly,
281 .width = xsurface->width, 278 .width = xsurface->width,
282 .height = xsurface->height, 279 .height = xsurface->height,
283 }; 280 };