From 1abc5e10f88cf0dcd7fa263217ff582285db2489 Mon Sep 17 00:00:00 2001 From: Matthias Kupfer Date: Thu, 27 Aug 2009 14:55:54 +0000 Subject: [PATCH] - revert change from revision 41251, because it introduce more problems then it fixes - basic problem still unsolved, window z-ordering doesn't work properly svn path=/trunk/; revision=42956 --- reactos/subsystems/win32/win32k/ntuser/winpos.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/winpos.c b/reactos/subsystems/win32/win32k/ntuser/winpos.c index 0570f717650..ea11ccea70b 100644 --- a/reactos/subsystems/win32/win32k/ntuser/winpos.c +++ b/reactos/subsystems/win32/win32k/ntuser/winpos.c @@ -1022,7 +1022,11 @@ co_WinPosSetWindowPos( if (InsertAfterWindow != NULL) UserDereferenceObject(InsertAfterWindow); if ((HWND_TOPMOST == WinPos.hwndInsertAfter) - && (IntIsDesktopWindow(Window->Parent))) + || (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))) { Window->Wnd->ExStyle |= WS_EX_TOPMOST; }