diff --git a/waylib/src/server/protocols/wxwaylandsurface.cpp b/waylib/src/server/protocols/wxwaylandsurface.cpp index 29dc3017e..11896aba0 100644 --- a/waylib/src/server/protocols/wxwaylandsurface.cpp +++ b/waylib/src/server/protocols/wxwaylandsurface.cpp @@ -178,7 +178,7 @@ void WXWaylandSurfacePrivate::updateChildren() if (children == list) return; - const bool hasChildChanged = children.isEmpty() || list.isEmpty(); + const bool hasChildChanged = children.isEmpty() != list.isEmpty(); children = list; W_Q(WXWaylandSurface);