Allow to override A/V-lock (when moving video)
authorRobin Gareus <robin@gareus.org>
Mon, 7 Sep 2015 23:35:35 +0000 (01:35 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 7 Sep 2015 23:35:35 +0000 (01:35 +0200)
gtk2_ardour/editor_drag.cc

index 0b21d32d815d936c467292bfd0cde1d727de140e..c1a8553d62f303a5fe21e037dfe8bcf026a346df 100644 (file)
@@ -2522,6 +2522,12 @@ VideoTimeLineDrag::start_grab (GdkEvent* event, Gdk::Cursor*)
        if (_editor->session() == 0) {
                return;
        }
+
+       if (Keyboard::modifier_state_equals (event->button.state, Keyboard::ModifierMask (Keyboard::TertiaryModifier))) {
+               _stuck = false;
+               _views.clear();
+       }
+
        if (_stuck) {
                show_verbose_cursor_text (_("One or more Audio Regions\nare both Locked and\nLocked to Video.\nThe video cannot me moved."));
                return;