wine: rearrange patches to a more sensible order
[sugaredwine.git] / patches / 0017-explorer-make-sure-minimized-windows-are-restored-b.patch
blobd28eea4f5844dcc6b15bea6811ff52b0ff6fbbc1
1 From eec62de01f6a9caa759ae00ec892e9d953ab13d4 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
7 windows.
8 ---
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 dd08fda..d6a9b5a 100644
14 --- a/programs/explorer/tasklist.c
15 +++ b/programs/explorer/tasklist.c
16 @@ -301,9 +301,9 @@ static void handle_click(int index)
18 else
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);
28 --
29 1.5.6.5