mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-05-25 21:37:54 -04:00
xwayland/xwm: check whether surface is already associated for WL_SURFACE_ID
xwayland_surface_associate() asserts that the surface has not yet been associated yet. Arbitrary clients can send these messages, don't abort when that happens.
This commit is contained in:
parent
041aa8c048
commit
8154d80a4d
1 changed files with 5 additions and 0 deletions
|
|
@ -1466,6 +1466,11 @@ static void xwm_handle_surface_id_message(struct wlr_xwm *xwm,
|
|||
ev->window);
|
||||
return;
|
||||
}
|
||||
if (xsurface->surface != NULL) {
|
||||
wlr_log(WLR_DEBUG, "Received multiple client messages WL_SURFACE_ID "
|
||||
"for an already-associated X11 window %u", ev->window);
|
||||
return;
|
||||
}
|
||||
|
||||
uint32_t id = ev->data.data32[0];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue