Show cursor in Cut mode on button press at cutting position
authorTim Mayberry <mojofunk@gmail.com>
Mon, 21 Nov 2016 10:45:35 +0000 (20:45 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Mon, 21 Nov 2016 10:45:35 +0000 (20:45 +1000)
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.

gtk2_ardour/editor_drag.cc
gtk2_ardour/editor_drag.h

index 8ba745d5876188a8c29117ead3a4a386ed4770fe..5d0bfc60ed79076dcf93d51f4d181a837d51e1ba 100644 (file)
@@ -6526,6 +6526,13 @@ RegionCutDrag::~RegionCutDrag ()
        delete line;
 }
 
+void
+RegionCutDrag::start_grab (GdkEvent* event, Gdk::Cursor* c)
+{
+       Drag::start_grab (event, c);
+       motion (event, false);
+}
+
 void
 RegionCutDrag::motion (GdkEvent*, bool)
 {
index bc30486b584094774f1d0c4c3a28416b07f958d3..88e651899b0c970b872e6c1cc2fd3adff58b849e 100644 (file)
@@ -502,6 +502,7 @@ class RegionCutDrag : public Drag
        RegionCutDrag (Editor*, ArdourCanvas::Item*, framepos_t);
        ~RegionCutDrag ();
 
+       void start_grab (GdkEvent *, Gdk::Cursor* c = 0);
        void motion (GdkEvent*, bool);
        void finished (GdkEvent*, bool);
        void aborted (bool);