[pkg-wine-party] [SCM] Debian Wine packaging branch, lenny, updated. wine-1.0.0-1-126-gccc5cbd
Alexandre Julliard
julliard at winehq.org
Thu Oct 30 14:44:05 UTC 2008
The following commit has been merged in the lenny branch:
commit c13025c16b5d97f445d26f52e80bd2d86f64a612
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Jul 22 15:31:04 2008 +0200
user32: Fix MapWindowPoints behavior in the process that owns the desktop window.
(cherry picked from commit 406f5b2545d553b36d370a913a8454078797b097)
diff --git a/dlls/user32/painting.c b/dlls/user32/painting.c
index 436bd16..65f708e 100644
--- a/dlls/user32/painting.c
+++ b/dlls/user32/painting.c
@@ -623,6 +623,8 @@ static HRGN send_ncpaint( HWND hwnd, HWND *child, UINT *flags )
if (child) hwnd = *child;
+ if (hwnd == GetDesktopWindow()) return whole_rgn;
+
if (whole_rgn)
{
RECT client, update;
diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index 621f89a..2077dc6 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -434,8 +434,11 @@ static void WINPOS_GetWinOffset( HWND hwndFrom, HWND hwndTo, POINT *offset )
}
if (wndPtr == WND_DESKTOP) break;
if (wndPtr == WND_OTHER_PROCESS) goto other_process;
- offset->x += wndPtr->rectClient.left;
- offset->y += wndPtr->rectClient.top;
+ if (wndPtr->parent)
+ {
+ offset->x += wndPtr->rectClient.left;
+ offset->y += wndPtr->rectClient.top;
+ }
hwnd = wndPtr->parent;
WIN_ReleasePtr( wndPtr );
}
@@ -455,8 +458,11 @@ static void WINPOS_GetWinOffset( HWND hwndFrom, HWND hwndTo, POINT *offset )
}
if (wndPtr == WND_DESKTOP) break;
if (wndPtr == WND_OTHER_PROCESS) goto other_process;
- offset->x -= wndPtr->rectClient.left;
- offset->y -= wndPtr->rectClient.top;
+ if (wndPtr->parent)
+ {
+ offset->x -= wndPtr->rectClient.left;
+ offset->y -= wndPtr->rectClient.top;
+ }
hwnd = wndPtr->parent;
WIN_ReleasePtr( wndPtr );
}
--
Debian Wine packaging
More information about the pkg-wine-party
mailing list