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.
This commit is contained in:
Tim Mayberry 2016-11-21 20:45:35 +10:00
parent 4ec299779c
commit d4190d3761
2 changed files with 8 additions and 0 deletions

View 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)
{

View 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);