Update wine to 1.2.
[sugaredwine.git] / patches / 0017-explorer-make-sure-minimized-windows-are-restored-b.patch
blobf7941c2d101293d1c539bbee18b047033a6c70a0
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
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 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)
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