1 From 06ca0a24719757e0ee83337b036e5524097c6011 Mon Sep 17 00:00:00 2001
2 From: Vincent Povirk <vincent@codeweavers.com>
3 Date: Thu, 25 Sep 2008 14:56:29 -0500
4 Subject: [PATCH] explorer: make sure minimized windows are restored before making them the foreground
6 This seems to clear up some focus problems when restoring minimized
9 programs/explorer/tasklist.c | 4 ++--
10 1 files changed, 2 insertions(+), 2 deletions(-)
12 diff --git a/programs/explorer/tasklist.c b/programs/explorer/tasklist.c
13 index c99341d..26de448 100644
14 --- a/programs/explorer/tasklist.c
15 +++ b/programs/explorer/tasklist.c
16 @@ -303,9 +303,9 @@ static void handle_click(int index)
20 - SetForegroundWindow(hwnd);
21 if (style & WS_MINIMIZE)
22 - PostMessageW(hwnd, WM_SYSCOMMAND, SC_RESTORE, 0);
23 + SendMessageW(hwnd, WM_SYSCOMMAND, SC_RESTORE, 0);
24 + SetForegroundWindow(hwnd);
25 foreground_changed(hwnd);