summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-09-21 06:13:38 +0000
committerManolo Gouy <Manolo>2016-09-21 06:13:38 +0000
commit6bba205c936c9a3917e5bd08238306c2ae7cc365 (patch)
treee674afa74c5b4463e36d3e5780c00cb330deb9f6 /src
parent6347dbde58f1a463e297a082d237272880066cd2 (diff)
Remove the 'suppressed' variable from cocoaMouseHandler(), a useless residue from ancient code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11960 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index cfda0e768..20114daee 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -1049,7 +1049,6 @@ static void cocoaMouseHandler(NSEvent *theEvent)
{
static int keysym[] = { 0, FL_Button+1, FL_Button+3, FL_Button+2 };
static int px, py;
- static char suppressed = 0;
fl_lock_function();
@@ -1082,7 +1081,6 @@ static void cocoaMouseHandler(NSEvent *theEvent)
case NSLeftMouseDown:
case NSRightMouseDown:
case NSOtherMouseDown:
- suppressed = 0;
sendEvent = FL_PUSH;
Fl::e_is_click = 1;
px = (int)pos.x; py = (int)pos.y;
@@ -1094,10 +1092,6 @@ static void cocoaMouseHandler(NSEvent *theEvent)
case NSLeftMouseUp:
case NSRightMouseUp:
case NSOtherMouseUp:
- if (suppressed) {
- suppressed = 0;
- break;
- }
if ( !window ) break;
if ( !sendEvent ) {
sendEvent = FL_RELEASE;
@@ -1105,15 +1099,13 @@ static void cocoaMouseHandler(NSEvent *theEvent)
Fl::e_keysym = keysym[ btn ];
// fall through
case NSMouseMoved:
- suppressed = 0;
- if ( !sendEvent ) {
+ if ( !sendEvent ) {
sendEvent = FL_MOVE;
}
// fall through
case NSLeftMouseDragged:
case NSRightMouseDragged:
case NSOtherMouseDragged: {
- if (suppressed) break;
if ( !sendEvent ) {
sendEvent = FL_MOVE; // Fl::handle will convert into FL_DRAG
if (fabs(pos.x-px)>5 || fabs(pos.y-py)>5)