Module: wine Branch: oldstable Commit: 2076cb6c33d75098bfe3b32130ce25f140c0a654 URL: https://source.winehq.org/git/wine.git/?a=commit;h=2076cb6c33d75098bfe3b3213...
Author: Olivier F. R. Dierick o.dierick@piezo-forte.be Date: Mon Jan 7 01:51:18 2019 +0100
explorer: Don't change Z-order of the taskbar when displaying it.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=40828 Signed-off-by: Olivier F. R. Dierick o.dierick@piezo-forte.be Signed-off-by: Hamish Claxton hamishclaxton@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit 5afd80307ed2487998c0ccd552f883560ac24cfd) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
programs/explorer/systray.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/explorer/systray.c b/programs/explorer/systray.c index 9e58ad4..a75b92c 100644 --- a/programs/explorer/systray.c +++ b/programs/explorer/systray.c @@ -766,8 +766,8 @@ static void do_show_systray(void) tray_width = GetSystemMetrics( SM_CXSCREEN ); tray_height = max( icon_cy, size.cy ); start_button_width = size.cx; - SetWindowPos( tray_window, HWND_TOPMOST, 0, GetSystemMetrics( SM_CYSCREEN ) - tray_height, - tray_width, tray_height, SWP_NOACTIVATE | SWP_SHOWWINDOW ); + SetWindowPos( tray_window, 0, 0, GetSystemMetrics( SM_CYSCREEN ) - tray_height, + tray_width, tray_height, SWP_NOZORDER | SWP_NOACTIVATE | SWP_SHOWWINDOW ); sync_taskbar_buttons(); }