mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-05-26 21:37:59 -04:00
xwayland/xwm: expand comment about WL_SURFACE_ID event ordering
Make it clearer what's up.
This commit is contained in:
parent
73d6968cd0
commit
041aa8c048
1 changed files with 5 additions and 1 deletions
|
|
@ -1466,8 +1466,12 @@ static void xwm_handle_surface_id_message(struct wlr_xwm *xwm,
|
||||||
ev->window);
|
ev->window);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/* Check if we got notified after wayland surface create event */
|
|
||||||
uint32_t id = ev->data.data32[0];
|
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 =
|
struct wl_resource *resource =
|
||||||
wl_client_get_object(xwm->xwayland->server->client, id);
|
wl_client_get_object(xwm->xwayland->server->client, id);
|
||||||
if (resource) {
|
if (resource) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue