user32: Don't forward WM_SETCURSOR to the desktop window.
This commit is contained in:
parent
cbb46ec83c
commit
112ff62283
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue