Tweak TB event passthrough
Play/Stop and Follow buttons no longer pass events up. That way the strip will not be selected on mouse-up.
This commit is contained in:
parent
d9ec733c47
commit
e51427413c
@ -238,10 +238,6 @@ TriggerMaster::event_handler (GdkEvent* ev)
|
||||
} else {
|
||||
_triggerbox->stop_all_quantized ();
|
||||
}
|
||||
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
case GDK_ENTER_NOTIFY:
|
||||
@ -261,13 +257,12 @@ TriggerMaster::event_handler (GdkEvent* ev)
|
||||
switch (ev->button.button) {
|
||||
case 3:
|
||||
context_menu ();
|
||||
return true;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -602,7 +602,6 @@ TriggerEntry::play_button_event (GdkEvent* ev)
|
||||
} else {
|
||||
trigger ()->box ().stop_all_quantized ();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@ -623,7 +622,6 @@ TriggerEntry::play_button_event (GdkEvent* ev)
|
||||
} else {
|
||||
trigger ()->bang ();
|
||||
}
|
||||
return true;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -657,7 +655,7 @@ TriggerEntry::play_button_event (GdkEvent* ev)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
@ -672,7 +670,6 @@ TriggerEntry::follow_button_event (GdkEvent* ev)
|
||||
case 1:
|
||||
case 3:
|
||||
follow_context_menu ();
|
||||
return true;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -690,7 +687,7 @@ TriggerEntry::follow_button_event (GdkEvent* ev)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
@ -706,7 +703,9 @@ TriggerEntry::event (GdkEvent* ev)
|
||||
if(_grabbed) {
|
||||
ungrab();
|
||||
_grabbed = false;
|
||||
} break;
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
|
||||
case GDK_BUTTON_PRESS:
|
||||
if (!_drag_active) {
|
||||
@ -741,6 +740,7 @@ TriggerEntry::event (GdkEvent* ev)
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user