13
0

fix stuck key-grab/scrolling.

Problem: mouse-scrolling over a MIDI region in internal edit mode
never released “magic widget focus” (mod keys and global scrolls after
that were ignored). -> added to leave_notify.

Also, the MouseModeChanged signal needs to be emitted when internal edit,
mode changes in order to trigger MidiRegionView::mouse_mode_changed(), 
which in turn releases the magic focus while still hovering over a MIDI
region.
This commit is contained in:
Robin Gareus 2014-10-21 11:07:53 +02:00
parent a9532179d5
commit 148c1f1768
2 changed files with 5 additions and 0 deletions

View File

@ -2557,6 +2557,7 @@ Editor::set_internal_edit (bool yn)
}
reset_canvas_cursor ();
MouseModeChanged ();
}
/** Update _join_object_range_state which indicate whether we are over the top

View File

@ -414,6 +414,10 @@ MidiRegionView::leave_notify (GdkEventCrossing*)
trackview.editor().verbose_cursor()->hide ();
remove_ghost_note ();
if (trackview.editor().internal_editing()) {
Keyboard::magic_widget_drop_focus();
}
if (pre_enter_cursor) {
Editor* editor = dynamic_cast<Editor *> (&trackview.editor());
editor->set_canvas_cursor(pre_enter_cursor);