[PATCH 24/37] mi: Mark/validate windows in MoveWindow based on paintable not viewable

Adam Jackson ajax at redhat.com
Wed Oct 8 08:04:48 PDT 2014


Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 mi/miwindow.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mi/miwindow.c b/mi/miwindow.c
index 5c41dcb..5d54ae2 100644
--- a/mi/miwindow.c
+++ b/mi/miwindow.c
@@ -242,7 +242,7 @@ void
 miMoveWindow(WindowPtr pWin, int x, int y, WindowPtr pNextSib, VTKind kind)
 {
     WindowPtr pParent;
-    Bool WasViewable = (Bool) (pWin->viewable);
+    Bool WasPaintable = pWin->paintable;
     short bw;
     RegionPtr oldRegion = NULL;
     DDXPointRec oldpt;
@@ -259,7 +259,7 @@ miMoveWindow(WindowPtr pWin, int x, int y, WindowPtr pNextSib, VTKind kind)
 
     oldpt.x = pWin->drawable.x;
     oldpt.y = pWin->drawable.y;
-    if (WasViewable) {
+    if (WasPaintable) {
         oldRegion = RegionCreate(NullBox, 1);
         RegionCopy(oldRegion, &pWin->borderClip);
         anyMarked = (*pScreen->MarkOverlappedWindows) (pWin, pWin, &pLayerWin);
@@ -278,7 +278,7 @@ miMoveWindow(WindowPtr pWin, int x, int y, WindowPtr pNextSib, VTKind kind)
 
     ResizeChildrenWinSize(pWin, x - oldpt.x, y - oldpt.y, 0, 0);
 
-    if (WasViewable) {
+    if (WasPaintable) {
         if (pLayerWin == pWin)
             anyMarked |= (*pScreen->MarkOverlappedWindows)
                 (pWin, windowToValidate, NULL);
-- 
1.9.3



More information about the xorg-devel mailing list