mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 12:04:51 +00:00
Fix for Bugzilla Entry 641 - patch from j_anderw at sbox.tugraz.at
svn path=/trunk/; revision=18409
This commit is contained in:
parent
543acff480
commit
76f3a6da01
1 changed files with 9 additions and 0 deletions
|
@ -210,6 +210,7 @@ MsqIsDblClk(LPMSG Msg, BOOL Remove)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
WinStaObject = PsGetWin32Thread()->Desktop->WindowStation;
|
WinStaObject = PsGetWin32Thread()->Desktop->WindowStation;
|
||||||
|
|
||||||
CurInfo = IntGetSysCursorInfo(WinStaObject);
|
CurInfo = IntGetSysCursorInfo(WinStaObject);
|
||||||
|
@ -227,6 +228,12 @@ MsqIsDblClk(LPMSG Msg, BOOL Remove)
|
||||||
|
|
||||||
Res = (dX <= CurInfo->DblClickWidth) &&
|
Res = (dX <= CurInfo->DblClickWidth) &&
|
||||||
(dY <= CurInfo->DblClickHeight);
|
(dY <= CurInfo->DblClickHeight);
|
||||||
|
|
||||||
|
if(Res)
|
||||||
|
{
|
||||||
|
if(CurInfo->ButtonsDown)
|
||||||
|
Res = (CurInfo->ButtonsDown == Msg->message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Remove)
|
if(Remove)
|
||||||
|
@ -237,6 +244,7 @@ MsqIsDblClk(LPMSG Msg, BOOL Remove)
|
||||||
CurInfo->LastBtnDownX = Msg->pt.x;
|
CurInfo->LastBtnDownX = Msg->pt.x;
|
||||||
CurInfo->LastBtnDownY = Msg->pt.y;
|
CurInfo->LastBtnDownY = Msg->pt.y;
|
||||||
CurInfo->LastClkWnd = NULL;
|
CurInfo->LastClkWnd = NULL;
|
||||||
|
CurInfo->ButtonsDown = Msg->message;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -244,6 +252,7 @@ MsqIsDblClk(LPMSG Msg, BOOL Remove)
|
||||||
CurInfo->LastBtnDownY = Msg->pt.y;
|
CurInfo->LastBtnDownY = Msg->pt.y;
|
||||||
CurInfo->LastClkWnd = (HANDLE)Msg->hwnd;
|
CurInfo->LastClkWnd = (HANDLE)Msg->hwnd;
|
||||||
CurInfo->LastBtnDown = Msg->time;
|
CurInfo->LastBtnDown = Msg->time;
|
||||||
|
CurInfo->ButtonsDown = Msg->message;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue