summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-07-04 22:48:58 +0000
committerCarl Hetherington <carl@carlh.net>2010-07-04 22:48:58 +0000
commitcf5c70755337fb31c80c595f3267e7b2590f5787 (patch)
treeae7d702eaa06facdc1a455658e64e9c3a17eb8ca /gtk2_ardour
parent2c09798dc82c653bc1de922a243bd37bd12e0313 (diff)
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
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_drag.cc6
1 files changed, 6 insertions, 0 deletions
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