From 297eae47ed4f9966b8c7cb0bbb00a3a5d9abe7dd Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Thu, 12 May 2016 12:14:42 +0000 Subject: [PATCH] [EXPLORER] - Avoid activating windows when updating their size and position CORE-11217 svn path=/trunk/; revision=71318 --- reactos/base/shell/explorer/traywnd.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/base/shell/explorer/traywnd.cpp b/reactos/base/shell/explorer/traywnd.cpp index 5b3bb40ba27..ac953e48138 100644 --- a/reactos/base/shell/explorer/traywnd.cpp +++ b/reactos/base/shell/explorer/traywnd.cpp @@ -1052,7 +1052,7 @@ ChangePos: rcTray.top, rcTray.right - rcTray.left, rcTray.bottom - rcTray.top, - SWP_NOZORDER); + SWP_NOZORDER | SWP_NOACTIVATE); ResizeWorkArea(); @@ -1146,7 +1146,7 @@ ChangePos: 0, 0, 0, - SWP_NOMOVE | SWP_NOSIZE); + SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE); /* Determine a minimum tray window rectangle. The "client" height is zero here since we cannot determine an optimal minimum width when @@ -1456,7 +1456,7 @@ ChangePos: { SetWindowStyle(m_hWnd, WS_THICKFRAME | WS_BORDER, WS_THICKFRAME | WS_BORDER); } - SetWindowPos(NULL, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER); + SetWindowPos(NULL, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER); return TRUE; } @@ -1825,7 +1825,7 @@ ChangePos: { SetWindowStyle(m_hWnd, WS_THICKFRAME | WS_BORDER, WS_THICKFRAME | WS_BORDER); } - SetWindowPos(NULL, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER); + SetWindowPos(NULL, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER); }