From 2db2156bb36457011abd7ac240bcfc072022bd85 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Fri, 6 Oct 2006 21:59:42 +0000 Subject: [PATCH] Fixed control apps windows, Let me known if it create any regress. svn path=/trunk/; revision=24430 --- reactos/subsystems/win32/win32k/ntuser/winpos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/winpos.c b/reactos/subsystems/win32/win32k/ntuser/winpos.c index 765e1299084..360f7a69015 100644 --- a/reactos/subsystems/win32/win32k/ntuser/winpos.c +++ b/reactos/subsystems/win32/win32k/ntuser/winpos.c @@ -1221,7 +1221,7 @@ co_WinPosSetWindowPos( } if (RgnType != ERROR && RgnType != NULLREGION) { - if (Window->Parent) + if ((Window->Parent == UserGetDesktopWindow()) && (Window->Style & WS_VISIBLE)) { 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,