dix: extra NULL protection in UnmapSubwindows()

Even though it probably won't be hit ever, it's still better to be
really sure instead of some remote chance for hard segfault.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-05-07 13:14:38 +02:00
parent 877e443acf
commit 65e326e2e6

View File

@@ -2916,7 +2916,7 @@ UnmapSubwindows(WindowPtr pWin)
UnrealizeTree(pChild, FALSE);
}
}
if (wasViewable && anyMarked) {
if (wasViewable && anyMarked && pLayerWin) {
if (pLayerWin->parent == pWin)
(*pScreen->MarkWindow) (pWin);
else {