From 01e832b4a88a825700bc8956e2b67dedad100288 Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Sun, 4 Sep 2022 00:22:43 +0200 Subject: [PATCH] src/xwayland.c: Update xsurface on client map request --- src/xwayland.c | 5 +++++ 1 file changed, 5 insertions(+) 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); }