[PATCH 3/5] mioverlay: Remove redundant check from MarkUnrealizedWindow

Adam Jackson ajax at redhat.com
Tue Feb 17 15:59:44 PST 2015


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 <ajax at redhat.com>
---
 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



More information about the xorg-devel mailing list