From dc20f399554fbffe7d656ab48319d54d960cfd67 Mon Sep 17 00:00:00 2001 From: rewine Date: Tue, 2 Jun 2026 19:08:48 +0800 Subject: [PATCH] fix: correct xwayland child change detection logic Log: Fix the logic for detecting child surface changes in WXWaylandSurface --- waylib/src/server/protocols/wxwaylandsurface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);