Update wine to 1.2.
[sugaredwine.git] / patches / 0010-tasklist-use-WM_SYSCOMMAND-instead-of-ShowWindow.patch
blob8a603031133aff3c62f74f25563dc9899ca3ee7e
1 From c64367ca38af135291aa9dc2daa2434bdbb8dbc7 Mon Sep 17 00:00:00 2001
2 From: Vincent Povirk <vincent@codeweavers.com>
3 Date: Wed, 27 Aug 2008 13:01:39 -0500
4 Subject: [PATCH] tasklist: use WM_SYSCOMMAND instead of ShowWindow
6 ---
7 programs/explorer/tasklist.c | 9 +++------
8 1 files changed, 3 insertions(+), 6 deletions(-)
10 diff --git a/programs/explorer/tasklist.c b/programs/explorer/tasklist.c
11 index 3aca53b..802345a 100644
12 --- a/programs/explorer/tasklist.c
13 +++ b/programs/explorer/tasklist.c
14 @@ -252,17 +252,14 @@ static void handle_click(int index)
16 if (hwnd == foreground && !(style & WS_MINIMIZE))
18 - ShowWindow(hwnd, SW_SHOWMINNOACTIVE); /* MSDN suggests that SW_FORCEMINIMIZE is
19 - more appropriate, but it seems to make them vanish on Windows.. */
20 + PostMessageW(hwnd, WM_SYSCOMMAND, SC_MINIMIZE, 0);
21 foreground_changed(0);
23 else
25 SetForegroundWindow(hwnd);
26 - if (style & WS_MAXIMIZE)
27 - ShowWindow(hwnd, SW_SHOWMAXIMIZED);
28 - else
29 - ShowWindow(hwnd, SW_SHOWNORMAL);
30 + if (style & WS_MINIMIZE)
31 + PostMessageW(hwnd, WM_SYSCOMMAND, SC_RESTORE, 0);
32 foreground_changed(hwnd);
35 --
36 1.5.6.5