13
0

add a hack to deal with device discovery race, in which the devices were not actually known to be ready before the last update_surfaces() call (which is where binding between strips and routes occurs) ; add support for Mackie Control touch on/off messages

This commit is contained in:
Paul Davis 2014-02-19 13:15:33 -05:00
parent 130df9c2b1
commit 58a8d50bdc

View File

@ -3318,10 +3318,25 @@ LineDrag::motion (GdkEvent* event, bool)
}
void
LineDrag::finished (GdkEvent* event, bool)
LineDrag::finished (GdkEvent* event, bool movement_occured)
{
motion (event, false);
_line->end_drag (false, 0);
if (movement_occured) {
motion (event, false);
_line->end_drag (false, 0);
} else {
/* add a new control point on the line */
AutomationTimeAxisView* atv;
_line->end_drag (false, 0);
if ((atv = dynamic_cast<AutomationTimeAxisView*>(_editor->clicked_axisview)) != 0) {
framepos_t where = _editor->event_frame (event, 0, 0);
std::cerr << "Add new point @ " << where << ", " << _drags->current_pointer_y() << std::endl;
atv->add_automation_event (event, where, _drags->current_pointer_y(), false);
}
}
_editor->session()->commit_reversible_command ();
}