diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2005-11-01 23:57:40 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2005-11-01 23:57:40 +0000 |
| commit | 501e1b7416d110e29698e2722b1df7c0a7d3f9a7 (patch) | |
| tree | a64c012462ec8b52ef76de8c7211f80d1d4887c6 /src | |
| parent | e7ea8bbe97b1c9388302fc25762b6e0412ddabbc (diff) | |
STR #1059: OSX: applications could not reset the click count, so a tripple
click with reset could be interpreted as a double click, then a tripple click,
instead of double click, then a single click
M Fl_mac.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4615 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_mac.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Fl_mac.cxx b/src/Fl_mac.cxx index 197f5604a..ff619156c 100644 --- a/src/Fl_mac.cxx +++ b/src/Fl_mac.cxx @@ -868,7 +868,10 @@ static pascal OSStatus carbonMouseHandler( EventHandlerCallRef nextHandler, Even fl_os_capture = xid; sendEvent = FL_PUSH; Fl::e_is_click = 1; px = pos.h; py = pos.v; - Fl::e_clicks = clickCount-1; + if (clickCount>1) + Fl::e_clicks++; + else + Fl::e_clicks = 0; // fall through case kEventMouseUp: if ( !window ) break; |
