From 76f3a6da015fd9f4897d34b12e36775f7db675d2 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Wed, 12 Oct 2005 08:38:45 +0000 Subject: [PATCH] Fix for Bugzilla Entry 641 - patch from j_anderw at sbox.tugraz.at svn path=/trunk/; revision=18409 --- reactos/subsys/win32k/ntuser/msgqueue.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/reactos/subsys/win32k/ntuser/msgqueue.c b/reactos/subsys/win32k/ntuser/msgqueue.c index 38bf254d0c0..de4095c8c3a 100644 --- a/reactos/subsys/win32k/ntuser/msgqueue.c +++ b/reactos/subsys/win32k/ntuser/msgqueue.c @@ -210,6 +210,7 @@ MsqIsDblClk(LPMSG Msg, BOOL Remove) { return FALSE; } + WinStaObject = PsGetWin32Thread()->Desktop->WindowStation; CurInfo = IntGetSysCursorInfo(WinStaObject); @@ -227,6 +228,12 @@ MsqIsDblClk(LPMSG Msg, BOOL Remove) Res = (dX <= CurInfo->DblClickWidth) && (dY <= CurInfo->DblClickHeight); + + if(Res) + { + if(CurInfo->ButtonsDown) + Res = (CurInfo->ButtonsDown == Msg->message); + } } if(Remove) @@ -237,6 +244,7 @@ MsqIsDblClk(LPMSG Msg, BOOL Remove) CurInfo->LastBtnDownX = Msg->pt.x; CurInfo->LastBtnDownY = Msg->pt.y; CurInfo->LastClkWnd = NULL; + CurInfo->ButtonsDown = Msg->message; } else { @@ -244,6 +252,7 @@ MsqIsDblClk(LPMSG Msg, BOOL Remove) CurInfo->LastBtnDownY = Msg->pt.y; CurInfo->LastClkWnd = (HANDLE)Msg->hwnd; CurInfo->LastBtnDown = Msg->time; + CurInfo->ButtonsDown = Msg->message; } }