[Bug 881] Mouse cursor not blanked

Wine Bugs wine-bugs at winehq.org
Wed Feb 21 10:49:29 CST 2007


http://bugs.winehq.org/show_bug.cgi?id=881





------- Additional Comments From gbrammer at gmx.de  2007-21-02 10:49 -------
My patch from comment #9 caused the cursor to flicker in other apps. This one
does not, although I still have no idea why this fixes anything :-)

--- a/dlls/user32/cursoricon.c
+++ b/dlls/user32/cursoricon.c
@@ -1459,8 +1459,9 @@ HCURSOR WINAPI SetCursor( HCURSOR hCursor /* [in] Handle
of cursor to show */ )
     struct user_thread_info *thread_info = get_user_thread_info();
     HCURSOR hOldCursor;
 
-    if (hCursor == thread_info->cursor) return hCursor;  /* No change */
-    TRACE("%p\n", hCursor);
+    if (hCursor && hCursor == thread_info->cursor) return hCursor;  /* No change */
+    TRACE("%p (was %p)\n", hCursor, thread_info->cursor);
+	
     hOldCursor = thread_info->cursor;
     thread_info->cursor = hCursor;
     /* Change the cursor shape only if it is visible */

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list