Signed-off-by: Zhiyi Zhang zzhang@codeweavers.com --- programs/explorer/systray.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/programs/explorer/systray.c b/programs/explorer/systray.c index f9e6661af4..92bc4600db 100644 --- a/programs/explorer/systray.c +++ b/programs/explorer/systray.c @@ -676,6 +676,8 @@ static void click_taskbar_button( HWND button )
if (IsIconic( hwnd )) { + if (IsWindowVisible( hwnd )) + SetActiveWindow( hwnd ); SendMessageW( hwnd, WM_SYSCOMMAND, SC_RESTORE, 0 ); return; }
Zhiyi Zhang zzhang@codeweavers.com writes:
Signed-off-by: Zhiyi Zhang zzhang@codeweavers.com
programs/explorer/systray.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/programs/explorer/systray.c b/programs/explorer/systray.c index f9e6661af4..92bc4600db 100644 --- a/programs/explorer/systray.c +++ b/programs/explorer/systray.c @@ -676,6 +676,8 @@ static void click_taskbar_button( HWND button )
if (IsIconic( hwnd )) {
if (IsWindowVisible( hwnd ))
SetActiveWindow( hwnd ); SendMessageW( hwnd, WM_SYSCOMMAND, SC_RESTORE, 0 );
SetActiveWindow() acts on the current thread queue, I don't think that this will do what you want.