summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_canvas.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-06-10 16:46:09 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2014-06-10 16:46:09 -0400
commit144033e55c004a68c9b6433ba26d92baf5cfa6d1 (patch)
tree6f5bdaf9c5fd7595b6e54acd6c017308b5ffc89b /gtk2_ardour/editor_canvas.cc
parentb9f7aeb61e19a1a272dd0d6ab688fbd8272be489 (diff)
do not allow canvas cursor changes while a drag is in progress
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r--gtk2_ardour/editor_canvas.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc
index a53158cbde..9c00efff15 100644
--- a/gtk2_ardour/editor_canvas.cc
+++ b/gtk2_ardour/editor_canvas.cc
@@ -880,6 +880,12 @@ Editor::horizontal_position () const
void
Editor::set_canvas_cursor (Gdk::Cursor* cursor, bool save)
{
+ /* do not allow cursors to change during a drag */
+
+ if (_drags->active()) {
+ return;
+ }
+
if (save) {
current_canvas_cursor = cursor;
}