summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_drag.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-11-21 20:45:35 +1000
committerTim Mayberry <mojofunk@gmail.com>2016-11-21 20:45:35 +1000
commitd4190d37612ac1b9f12f83d3952ed6584c085923 (patch)
tree1252ed99564f1d262bce0d44cd0194288de4aa9b /gtk2_ardour/editor_drag.cc
parent4ec299779cfaa2ccc4327f5bb85998e8599418e8 (diff)
Show cursor in Cut mode on button press at cutting position
Previously it would be shown at the mouse cursor position even though the Region is cut/split at the snap/quantize point if no motion occurred.
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r--gtk2_ardour/editor_drag.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc
index 8ba745d587..5d0bfc60ed 100644
--- a/gtk2_ardour/editor_drag.cc
+++ b/gtk2_ardour/editor_drag.cc
@@ -6527,6 +6527,13 @@ RegionCutDrag::~RegionCutDrag ()
}
void
+RegionCutDrag::start_grab (GdkEvent* event, Gdk::Cursor* c)
+{
+ Drag::start_grab (event, c);
+ motion (event, false);
+}
+
+void
RegionCutDrag::motion (GdkEvent*, bool)
{
framepos_t where = _drags->current_pointer_frame();