diff --git a/libweston-desktop/xwayland.c b/libweston-desktop/xwayland.c index bd68bc68..62a33899 100644 --- a/libweston-desktop/xwayland.c +++ b/libweston-desktop/xwayland.c @@ -74,6 +74,7 @@ weston_desktop_xwayland_surface_change_state(struct weston_desktop_xwayland_surf bool to_add = (parent == NULL && state != XWAYLAND); assert(state != NONE); + assert(!parent || state == TRANSIENT); if (to_add && surface->added) { surface->state = state;