If we ever get here, we are certainly on the unmap path, and should
empty the shadow clip for the window.

Signed-off-by: Adam Jackson <[email protected]>
---
 mi/mioverlay.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/mi/mioverlay.c b/mi/mioverlay.c
index 423e022..9b981c1 100644
--- a/mi/mioverlay.c
+++ b/mi/mioverlay.c
@@ -705,10 +705,8 @@ miOverlayMarkUnrealizedWindow(WindowPtr pChild,
             (*pChild->drawable.pScreen->ClipNotify) (pChild, 0, 0);
         RegionEmpty(&pChild->borderClip);
         if ((pTree = MIOVERLAY_GET_WINDOW_TREE(pChild))) {
-            if (pTree->valdata != (miOverlayValDataPtr) UnmapValData) {
-                RegionEmpty(&pTree->clipList);
-                RegionEmpty(&pTree->borderClip);
-            }
+            RegionEmpty(&pTree->clipList);
+            RegionEmpty(&pTree->borderClip);
         }
     }
 }
-- 
1.9.3

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to