summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-12-23 13:46:53 -0500
committerDavid Robillard <d@drobilla.net>2014-12-23 13:47:59 -0500
commit62355de33a00e40c20b79d7db1ac2139fd042743 (patch)
tree252d1c251f57f8e5465bbff5a468af31a0da5f37 /gtk2_ardour/editor.cc
parente00c579fb2e99e993a0ab84ff00ba3109f6b5f20 (diff)
Fix cursor update on nested entry.
For example, if you're in a note and something about the mode changes, it's the underlying region context that needs to change. So, seems we need a stack of entry contexts to deal with this sort of thing. Switching in/out of smart mode still doesn't update immediately because we don't have the y-coordinate needed to update it.
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r--gtk2_ardour/editor.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index 2b7182059b..e379bc2537 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -373,7 +373,6 @@ Editor::Editor ()
current_stepping_trackview = 0;
entered_track = 0;
entered_regionview = 0;
- _entered_item_type = NoItem;
entered_marker = 0;
clear_entered_track = false;
current_timefx = 0;
@@ -2122,9 +2121,7 @@ Editor::set_edit_point_preference (EditPoint ep, bool force)
edit_point_selector.set_text (str);
}
- if (_entered_item_type != NoItem) {
- choose_canvas_cursor_on_entry (_entered_item_type);
- }
+ update_all_enter_cursors();
if (!force && !changed) {
return;