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 ee7e43ab21
commit 9d13313511

View File

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