From 112ff622839a540fcb78e26a237c23633d29c75e Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 12 Feb 2010 15:55:45 +0100 Subject: [PATCH] user32: Don't forward WM_SETCURSOR to the desktop window. --- dlls/user32/defwnd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); -- 2.33.8