From cef1811547a8c3dcdfae6feb5a3100d9c1148729 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 22 Dec 2022 15:45:18 +0100 Subject: [PATCH] xwayland/xwm: remove unnecessary surface_id reset xwayland_surface_associate() already does this. --- xwayland/xwm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/xwayland/xwm.c b/xwayland/xwm.c index c39f640f..64052ef6 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -1120,7 +1120,6 @@ static void xwm_handle_surface_id_message(struct wlr_xwm *xwm, wl_client_get_object(xwm->xwayland->server->client, id); if (resource) { struct wlr_surface *surface = wlr_surface_from_resource(resource); - xsurface->surface_id = 0; xwayland_surface_associate(xwm, xsurface, surface); } else { xsurface->surface_id = id;