From a6c9c04fd65f5b42e72958f42de67b9244235590 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 1 Apr 2020 22:54:00 +0200 Subject: Hide snap cursor when not using mouse edit #7966 --- gtk2_ardour/editor.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/editor.cc') diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 48a08fae98..7dbb886f9e 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -5925,9 +5925,11 @@ Editor::super_rapid_screen_update () snapped_cursor->set_position (ms.sample); snapped_cursor->show (); } - } else if (mouse_sample (where.sample, ignored)) { // cursor is in the editing canvas. show it. + } else if (_edit_point == EditAtMouse && mouse_sample (where.sample, ignored)) { + /* cursor is in the editing canvas. show it. */ snapped_cursor->show (); - } else { // mouse is out of the editing canvas. hide the snapped_cursor + } else { + /* mouse is out of the editing canvas, or edit-point isn't mouse. Hide the snapped_cursor */ snapped_cursor->hide (); } -- cgit v1.2.3