src/xwayland.c: Update xsurface on client map request

This commit is contained in:
Consolatis 2022-09-04 00:22:43 +02:00
parent 2e81cc13d4
commit 01e832b4a8

View 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);
}