Author: mkupfer Date: Tue Jun 2 14:13:30 2009 New Revision: 41251
URL: http://svn.reactos.org/svn/reactos?rev=41251&view=rev Log: - fixes the problem of unsetting the HWND_TOPMOST property (e.g. taskmgr) - review recommended, but i think it's sufficient to limit topmost property to desktop windows only (otherwise we can remove this part of condition)
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntu... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/win32/win32k/ntuser/winpos.c [iso-8859-1] Tue Jun 2 14:13:30 2009 @@ -1012,11 +1012,7 @@ if (InsertAfterWindow != NULL) UserDereferenceObject(InsertAfterWindow); if ((HWND_TOPMOST == WinPos.hwndInsertAfter) - || (0 != (Window->Wnd->ExStyle & WS_EX_TOPMOST) - && NULL != Window->PrevSibling - && 0 != (Window->PrevSibling->Wnd->ExStyle & WS_EX_TOPMOST)) - || (NULL != Window->NextSibling - && 0 != (Window->NextSibling->Wnd->ExStyle & WS_EX_TOPMOST))) + && (IntIsDesktopWindow(Window->Parent))) { Window->Wnd->ExStyle |= WS_EX_TOPMOST; }