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
Simon Ser 2 years ago committed by Simon Zeni
parent fbf5982e38
commit 03412e9aab

@ -404,6 +404,7 @@ static void xwayland_surface_dissociate(struct wlr_xwayland_surface *xsurface) {
wl_list_remove(&xsurface->unpaired_link); wl_list_remove(&xsurface->unpaired_link);
wl_list_init(&xsurface->unpaired_link); wl_list_init(&xsurface->unpaired_link);
xsurface->surface_id = 0; xsurface->surface_id = 0;
xsurface->serial = 0;
} }
static void xwayland_surface_destroy(struct wlr_xwayland_surface *xsurface) { static void xwayland_surface_destroy(struct wlr_xwayland_surface *xsurface) {

Loading…
Cancel
Save