xwayland/xwm: expand comment about WL_SURFACE_ID event ordering

Make it clearer what's up.
This commit is contained in:
Simon Ser 2026-05-22 19:51:11 +02:00
parent 73d6968cd0
commit 041aa8c048

View file

@ -1466,8 +1466,12 @@ static void xwm_handle_surface_id_message(struct wlr_xwm *xwm,
ev->window);
return;
}
/* Check if we got notified after wayland surface create event */
uint32_t id = ev->data.data32[0];
// Because the X11 and Wayland connections are separate sockets, the
// WL_SURFACE_ID and wl_compositor.create_surface messages may be received
// in any order.
struct wl_resource *resource =
wl_client_get_object(xwm->xwayland->server->client, id);
if (resource) {