From: Alexandre Julliard Date: Fri, 12 Feb 2010 14:55:45 +0000 (+0100) Subject: user32: Don't forward WM_SETCURSOR to the desktop window. X-Git-Tag: wine-1.1.39~166 X-Git-Url: http://git.etersoft.ru/projects/?a=commitdiff_plain;h=112ff622839a540fcb78e26a237c23633d29c75e;p=wine%2Feterwine.git user32: Don't forward WM_SETCURSOR to the desktop window. --- diff --git a/dlls/user32/defwnd.c b/dlls/user32/defwnd.c index ba4fd137e6..31e25f39fc 100644 --- a/dlls/user32/defwnd.c +++ b/dlls/user32/defwnd.c @@ -528,7 +528,9 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa * give the parent first chance to set the cursor */ if ((LOWORD(lParam) < HTSIZEFIRST) || (LOWORD(lParam) > HTSIZELAST)) { - if (SendMessageW(GetParent(hwnd), WM_SETCURSOR, wParam, lParam)) return TRUE; + HWND parent = GetParent( hwnd ); + if (parent != GetDesktopWindow() && + SendMessageW( parent, WM_SETCURSOR, wParam, lParam )) return TRUE; } } NC_HandleSetCursor( hwnd, wParam, lParam );