mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
xwayland/xwm: assert that we're not overwriting when associating
Make sure xwayland_surface_associate() is not called twice in a row without a xwayland_surface_dissociate() call in-between.
This commit is contained in:
parent
a922428c41
commit
445ce7eac6
1 changed files with 2 additions and 0 deletions
|
@ -885,6 +885,8 @@ static const struct wlr_addon_interface surface_addon_impl = {
|
|||
|
||||
static void xwayland_surface_associate(struct wlr_xwm *xwm,
|
||||
struct wlr_xwayland_surface *xsurface, struct wlr_surface *surface) {
|
||||
assert(xsurface->surface == NULL);
|
||||
|
||||
wl_list_remove(&xsurface->unpaired_link);
|
||||
wl_list_init(&xsurface->unpaired_link);
|
||||
xsurface->surface_id = 0;
|
||||
|
|
Loading…
Reference in a new issue