mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-30 18:37:40 +01:00
cue editor: note that we're in the canvas when we enter it, etc.
This commit is contained in:
parent
38f5546327
commit
050828cc10
1 changed files with 2 additions and 0 deletions
|
|
@ -386,12 +386,14 @@ MidiCueEditor::canvas_enter_leave (GdkEventCrossing* ev)
|
|||
if (ev->detail != GDK_NOTIFY_INFERIOR) {
|
||||
_canvas_viewport->canvas()->grab_focus ();
|
||||
ActionManager::set_sensitive (_midi_actions, true);
|
||||
within_track_canvas = true;
|
||||
EditingContext::switch_editing_context (this);
|
||||
}
|
||||
break;
|
||||
case GDK_LEAVE_NOTIFY:
|
||||
if (ev->detail != GDK_NOTIFY_INFERIOR) {
|
||||
ActionManager::set_sensitive (_midi_actions, false);
|
||||
within_track_canvas = false;
|
||||
ARDOUR_UI::instance()->reset_focus (_canvas_viewport);
|
||||
}
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue