From cf5c70755337fb31c80c595f3267e7b2590f5787 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 4 Jul 2010 22:48:58 +0000 Subject: [PATCH] Locate during playhead drag, the primary motive being to get MMC to be sent during the drag, fixing #3239. git-svn-id: svn://localhost/ardour2/branches/3.0@7365 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_drag.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index e1870a21eb..e447e894dc 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -2137,6 +2137,12 @@ CursorDrag::motion (GdkEvent* event, bool) _editor->show_verbose_time_cursor (_cursor->current_frame, 10); + if (_editor->session() && _item == &_editor->playhead_cursor->canvas_item) { + _editor->session()->request_locate (_editor->playhead_cursor->current_frame, false); + _editor->_pending_locate_request = true; + } + + #ifdef GTKOSX _editor->update_canvas_now (); #endif