mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 20:01:22 +00:00
Ignore duplicate mouse down events generated by first click in a window.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@30031 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
18d408be09
commit
208545437d
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-03-24 Doug Simons <doug.simons@testplant.com>
|
||||
|
||||
* Source/win32/WIN32Server.m: Ignore duplicate mouse down
|
||||
events generated by first click in a window.
|
||||
|
||||
2010-03-19 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Headers/win32/w32_movesize.h:
|
||||
|
|
|
@ -1994,6 +1994,10 @@ process_mouse_event(WIN32Server *svr, HWND hwnd, WPARAM wParam, LPARAM lParam,
|
|||
|| (eventType == NSRightMouseDown)
|
||||
|| (eventType == NSOtherMouseDown))
|
||||
{
|
||||
// It seems Windows generates duplicate mouse down events on first click in a window
|
||||
if (ltime == lastTime) // duplicate event has identical time
|
||||
return nil; // ignore it
|
||||
|
||||
if (lastTime + GetDoubleClickTime() > ltime)
|
||||
{
|
||||
clickCount += 1;
|
||||
|
|
Loading…
Reference in a new issue