From 501e1b7416d110e29698e2722b1df7c0a7d3f9a7 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 1 Nov 2005 23:57:40 +0000 Subject: 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 --- src/Fl_mac.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3