Revert r24430 changes (by Magnus Olsen) since they are incorrect (additionally confir...
authorAleksey Bragin <aleksey@reactos.org>
Mon, 9 Oct 2006 15:02:33 +0000 (15:02 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Mon, 9 Oct 2006 15:02:33 +0000 (15:02 +0000)
svn path=/trunk/; revision=24471

reactos/subsystems/win32/win32k/ntuser/winpos.c

index 3aa8c37..bc1437c 100644 (file)
@@ -1221,7 +1221,7 @@ co_WinPosSetWindowPos(
          }
          if (RgnType != ERROR && RgnType != NULLREGION)
          {
-            if ((Window->Parent == UserGetDesktopWindow()) && (Window->Style & WS_VISIBLE))
+            if (Window->Parent)
             {
                NtGdiOffsetRgn(DirtyRgn,
                   Window->WindowRect.left - Window->Parent->ClientRect.left,
@@ -1229,7 +1229,7 @@ co_WinPosSetWindowPos(
                co_UserRedrawWindow(Window->Parent, NULL, DirtyRgn,
                   RDW_ERASE | RDW_FRAME | RDW_INVALIDATE | RDW_ALLCHILDREN);
             }
-            else 
+            else
             {
                NtGdiOffsetRgn(DirtyRgn,
                   Window->WindowRect.left - Window->ClientRect.left,