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

Alexandre Julliard julliard at winehq.org
Fri Feb 12 10:17:44 CST 2010


Module: wine
Branch: master
Commit: 112ff622839a540fcb78e26a237c23633d29c75e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=112ff622839a540fcb78e26a237c23633d29c75e

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Feb 12 15:55:45 2010 +0100

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

---

 dlls/user32/defwnd.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/defwnd.c b/dlls/user32/defwnd.c
index ba4fd13..31e25f3 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 );




More information about the wine-cvs mailing list