Update internal state only if the message is being removed

Dmitry Timoshkov dmitry at baikal.ru
Thu Jun 2 05:20:28 CDT 2005


Hello,

this patch fixes a regression in the app I'm working on: WM_LBUTTONDBLCLK
messages are not generated.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Update internal state only if the message is being removed.

--- cvs/hq/wine/dlls/user/message.c	2005-05-13 10:40:57.000000000 +0900
+++ wine/dlls/user/message.c	2005-06-02 14:17:45.000000000 +0900
@@ -1727,8 +1727,11 @@ static BOOL process_mouse_message( MSG *
                (abs(msg->pt.y - clk_msg.pt.y) < GetSystemMetrics(SM_CYDOUBLECLK)/2))
            {
                message += (WM_LBUTTONDBLCLK - WM_LBUTTONDOWN);
-               clk_msg.message = 0;  /* clear the double click conditions */
-               update = FALSE;
+               if (remove)
+               {
+                   clk_msg.message = 0;  /* clear the double click conditions */
+                   update = FALSE;
+               }
            }
         }
         if (message < first || message > last) return FALSE;






More information about the wine-patches mailing list