Update wine to 1.2.
[sugaredwine.git] / patches / 0028-explorer-stay-out-of-the-sugar-hot-corners.patch
blob8d18378e7bd46ed6ccf923f405824525e9b45795
1 From 945e21a7f5e728dc0b5a1f9f4f355c7867c97538 Mon Sep 17 00:00:00 2001
2 From: Vincent Povirk <vincent@codeweavers.com>
3 Date: Fri, 17 Oct 2008 15:51:52 -0500
4 Subject: [PATCH] explorer: stay out of the sugar "hot corners"
6 ---
7 programs/explorer/taskbar.c | 4 ++--
8 1 files changed, 2 insertions(+), 2 deletions(-)
10 diff --git a/programs/explorer/taskbar.c b/programs/explorer/taskbar.c
11 index 040e774..cc60088 100644
12 --- a/programs/explorer/taskbar.c
13 +++ b/programs/explorer/taskbar.c
14 @@ -66,8 +66,8 @@ static void taskbar_setpos(void)
15 abd.cbSize = sizeof(abd);
16 abd.hWnd = taskbar_window;
17 abd.uEdge = ABE_BOTTOM;
18 - abd.rc.left = 0;
19 - abd.rc.right = GetSystemMetrics(SM_CXSCREEN);
20 + abd.rc.left = GetSystemMetrics(SM_CXSCREEN) / 16;
21 + abd.rc.right = GetSystemMetrics(SM_CXSCREEN) * 15 / 16;
22 abd.rc.bottom = GetSystemMetrics(SM_CYSCREEN);
23 abd.rc.top = abd.rc.bottom - height;
24 SHAppBarMessage(ABM_QUERYPOS, &abd);
25 --
26 1.5.6.5