aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-02-01 16:04:21 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2023-02-01 16:33:15 +0000
commit03412e9aaba3f2bedacbeeef53469f13d6b6b277 (patch)
treebb6b547ca991b9395a8b1c7e46577026b67d05dc
parentfbf5982e3838ee28b5345e98832f6956c402b225 (diff)
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
-rw-r--r--xwayland/xwm.c1
1 files changed, 1 insertions, 0 deletions
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) {