user32: Don't forward WM_SETCURSOR to the desktop window.
authorAlexandre Julliard <julliard@winehq.org>
Fri, 12 Feb 2010 14:55:45 +0000 (15:55 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 12 Feb 2010 14:55:45 +0000 (15:55 +0100)
dlls/user32/defwnd.c

index ba4fd137e6eca17e4c9904367038ea67cf0ca3ad..31e25f39fceadc478a058e3e09c17727c498a98a 100644 (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 );