From 03412e9aaba3f2bedacbeeef53469f13d6b6b277 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 1 Feb 2023 16:04:21 +0100 Subject: xwayland/xwm: reset serial in xwayland_surface_dissociate() The same X11 window can be used multiple times with a different wl_surface. Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3570 --- xwayland/xwm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xwayland/xwm.c b/xwayland/xwm.c index dab2cf85..de9a7a80 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -404,6 +404,7 @@ static void xwayland_surface_dissociate(struct wlr_xwayland_surface *xsurface) { wl_list_remove(&xsurface->unpaired_link); wl_list_init(&xsurface->unpaired_link); xsurface->surface_id = 0; + xsurface->serial = 0; } static void xwayland_surface_destroy(struct wlr_xwayland_surface *xsurface) { -- cgit v1.2.3