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:
parent
ee7e43ab21
commit
9d13313511
|
@ -2915,7 +2915,7 @@ UnmapSubwindows(WindowPtr pWin)
|
||||||
UnrealizeTree(pChild, FALSE);
|
UnrealizeTree(pChild, FALSE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (wasViewable && anyMarked) {
|
if (wasViewable && anyMarked && pLayerWin) {
|
||||||
if (pLayerWin->parent == pWin)
|
if (pLayerWin->parent == pWin)
|
||||||
(*pScreen->MarkWindow) (pWin);
|
(*pScreen->MarkWindow) (pWin);
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue