]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/xwayland.c: Update xsurface on client map request
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Sat, 3 Sep 2022 22:22:43 +0000 (00:22 +0200)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 6 Sep 2022 20:03:17 +0000 (22:03 +0200)
src/xwayland.c

index d092b3ea1646afe6db0d564d26749c072dbeda32..f700b8ffa0e2602170754437bc27e15a1ae23c16 100644 (file)
@@ -68,6 +68,11 @@ static void
 handle_map(struct wl_listener *listener, void *data)
 {
        struct view *view = wl_container_of(listener, view, map);
+       struct wlr_xwayland_surface *xsurface = data;
+       if (xsurface != view->xwayland_surface) {
+               xsurface->data = view;
+               view->xwayland_surface = xsurface;
+       }
        view->impl->map(view);
 }