user32: Don't forward WM_SETCURSOR to the desktop window.

oldstable
Alexandre Julliard 2010-02-12 15:55:45 +01:00
parent cbb46ec83c
commit 112ff62283
1 changed files with 3 additions and 1 deletions

View File

@ -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 );