Update internal state only if the message is being removed.
This commit is contained in:
parent
5548e86b72
commit
d3847e01b7
|
@ -1727,8 +1727,11 @@ static BOOL process_mouse_message( MSG *msg, UINT hw_id, ULONG_PTR extra_info, H
|
||||||
(abs(msg->pt.y - clk_msg.pt.y) < GetSystemMetrics(SM_CYDOUBLECLK)/2))
|
(abs(msg->pt.y - clk_msg.pt.y) < GetSystemMetrics(SM_CYDOUBLECLK)/2))
|
||||||
{
|
{
|
||||||
message += (WM_LBUTTONDBLCLK - WM_LBUTTONDOWN);
|
message += (WM_LBUTTONDBLCLK - WM_LBUTTONDOWN);
|
||||||
clk_msg.message = 0; /* clear the double click conditions */
|
if (update)
|
||||||
update = FALSE;
|
{
|
||||||
|
clk_msg.message = 0; /* clear the double click conditions */
|
||||||
|
update = FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (message < first || message > last) return FALSE;
|
if (message < first || message > last) return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue