diff --git a/win32ss/user/ntuser/winpos.c b/win32ss/user/ntuser/winpos.c index 0557b902937..adc0032bd00 100644 --- a/win32ss/user/ntuser/winpos.c +++ b/win32ss/user/ntuser/winpos.c @@ -1,9 +1,8 @@ /* - * COPYRIGHT: See COPYING in the top level directory - * PROJECT: ReactOS kernel - * PURPOSE: Windows - * FILE: win32ss/user/ntuser/winpos.c - * PROGRAMER: Casper S. Hornstrup (chorns@users.sourceforge.net) + * COPYRIGHT: See COPYING in the top level directory + * PROJECT: ReactOS kernel + * PURPOSE: Windows + * PROGRAMER: Casper S. Hornstrup (chorns@users.sourceforge.net) */ #include @@ -437,7 +436,7 @@ co_WinPosActivateOtherWindow(PWND Wnd) // Find any window to bring to top. Works Okay for wine since it does not see X11 windows. WndTo = UserGetDesktopWindow(); WndTo = WndTo->spwndChild; - if ( WndTo == NULL ) + if (WndTo == NULL) { //ERR("WinPosActivateOtherWindow No window!\n"); return; @@ -1747,8 +1746,6 @@ co_WinPosSetWindowPos( ASSERT_REFS_CO(Window); - TRACE("pwnd %p, after %p, %d,%d (%dx%d), flags 0x%x", - Window, WndInsertAfter, x, y, cx, cy, flags); #if DBG dump_winpos_flags(flags); #endif @@ -1948,7 +1945,7 @@ co_WinPosSetWindowPos( Window->state |= WNDS_SENDNCPAINT; } - if (!(WinPos.flags & SWP_NOREDRAW)) + if (!(WinPos.flags & SWP_NOREDRAW) && ((WinPos.flags & SWP_AGG_STATUSFLAGS) != SWP_AGG_NOPOSCHANGE)) { /* Determine the new visible region */ VisAfter = VIS_ComputeVisibleRegion(Window, FALSE, FALSE, @@ -2105,7 +2102,7 @@ co_WinPosSetWindowPos( } IntInvalidateWindows(Window, DirtyRgn, RDW_ERASE | RDW_FRAME | RDW_INVALIDATE | RDW_ALLCHILDREN); } - else if ( RgnType != ERROR && RgnType == NULLREGION ) // Must be the same. See CORE-7166 & CORE-15934, NC HACK fix. + else if (RgnType != ERROR && RgnType == NULLREGION) // Must be the same. See CORE-7166 & CORE-15934, NC HACK fix. { if ( !PosChanged && !(WinPos.flags & SWP_DEFERERASE) && @@ -2154,7 +2151,7 @@ co_WinPosSetWindowPos( } /* Expose what was covered before but not covered anymore */ - if ( VisBefore != NULL ) + if (VisBefore != NULL) { PREGION ExposedRgn = IntSysCreateRectpRgn(0, 0, 0, 0); if (ExposedRgn) @@ -2164,7 +2161,7 @@ co_WinPosSetWindowPos( OldWindowRect.left - NewWindowRect.left, OldWindowRect.top - NewWindowRect.top); - if ( VisAfter != NULL ) + if (VisAfter != NULL) RgnType = IntGdiCombineRgn(ExposedRgn, ExposedRgn, VisAfter, RGN_DIFF); if (RgnType != ERROR && RgnType != NULLREGION) @@ -2212,7 +2209,7 @@ co_WinPosSetWindowPos( if ( !(Window->style & WS_CHILD) && (Parent) && (Parent->style & WS_CLIPCHILDREN)) { TRACE("SWP_FRAMECHANGED Parent %p WS_CLIPCHILDREN %p\n",Parent,Window); - UserSyncAndPaintWindows( Parent, RDW_CLIPCHILDREN); // NC should redraw here, see NC HACK fix. + UserSyncAndPaintWindows(Parent, RDW_CLIPCHILDREN); // NC should redraw here, see NC HACK fix. } } @@ -3068,7 +3065,7 @@ END: return retvalue; } -BOOL FASTCALL IntEndDeferWindowPosEx( HDWP hdwp, BOOL sAsync ) +BOOL FASTCALL IntEndDeferWindowPosEx(HDWP hdwp, BOOL sAsync) { PSMWP pDWP; PCVR winpos; @@ -3098,7 +3095,7 @@ BOOL FASTCALL IntEndDeferWindowPosEx( HDWP hdwp, BOOL sAsync ) UserRefObjectCo(pwnd, &Ref); - if ( sAsync ) + if (sAsync) { LRESULT lRes; PWINDOWPOS ppos = ExAllocatePoolWithTag(PagedPool, sizeof(WINDOWPOS), USERTAG_SWP);