Huw Davies : riched20: Don't set the cursor during mouse messages.

Alexandre Julliard julliard at winehq.org
Thu Mar 18 16:43:53 CDT 2021


Module: wine
Branch: master
Commit: cd5b064af8c82c182525967d3e98a81962f06367
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=cd5b064af8c82c182525967d3e98a81962f06367

Author: Huw Davies <huw at codeweavers.com>
Date:   Thu Mar 18 08:30:08 2021 +0000

riched20: Don't set the cursor during mouse messages.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/riched20/editor.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index f7d383c2f10..fe22554327f 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -3954,7 +3954,6 @@ LRESULT editor_handle_message( ME_TextEditor *editor, UINT msg, WPARAM wParam,
     ITextHost_TxSetCapture(editor->texthost, TRUE);
     editor->bMouseCaptured = TRUE;
     ME_LinkNotify(editor, msg, wParam, lParam);
-    if (!ME_SetCursor(editor)) goto do_default;
     break;
   }
   case WM_MOUSEMOVE:
@@ -3962,9 +3961,6 @@ LRESULT editor_handle_message( ME_TextEditor *editor, UINT msg, WPARAM wParam,
       ME_MouseMove(editor, (short)LOWORD(lParam), (short)HIWORD(lParam));
     else
       ME_LinkNotify(editor, msg, wParam, lParam);
-    /* Set cursor if mouse is captured, since WM_SETCURSOR won't be received. */
-    if (editor->bMouseCaptured)
-        ME_SetCursor(editor);
     break;
   case WM_LBUTTONUP:
     if (editor->bMouseCaptured) {
@@ -3975,7 +3971,6 @@ LRESULT editor_handle_message( ME_TextEditor *editor, UINT msg, WPARAM wParam,
       editor->nSelectionType = stPosition;
     else
     {
-      ME_SetCursor(editor);
       ME_LinkNotify(editor, msg, wParam, lParam);
     }
     break;




More information about the wine-cvs mailing list