From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Sat, 3 Sep 2022 22:22:43 +0000 (+0200) Subject: src/xwayland.c: Update xsurface on client map request X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=01e832b4a88a825700bc8956e2b67dedad100288;p=proto%2Flabwc.git src/xwayland.c: Update xsurface on client map request --- diff --git a/src/xwayland.c b/src/xwayland.c index d092b3ea..f700b8ff 100644 --- a/src/xwayland.c +++ b/src/xwayland.c @@ -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); }