mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-27 01:34:54 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user