summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_keyboard.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-08-27 15:20:29 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-08-27 15:20:29 +0000
commit218b893464e0b5f42eda2dec42fe2b5413d6b65f (patch)
tree9b7e8d9e4c187fdcedae79c1e91ea2e47a638d89 /gtk2_ardour/editor_keyboard.cc
parent8755c7124512613f4bfa74b13887285c64146747 (diff)
fix crashing mouse-button+'s' operation (generically, not just for 's'); more import changes to support SAE goals re: embedding
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2351 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_keyboard.cc')
-rw-r--r--gtk2_ardour/editor_keyboard.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_keyboard.cc b/gtk2_ardour/editor_keyboard.cc
index e9082445c4..a8a4694b90 100644
--- a/gtk2_ardour/editor_keyboard.cc
+++ b/gtk2_ardour/editor_keyboard.cc
@@ -43,6 +43,14 @@ Editor::kbd_driver (sigc::slot<void,GdkEvent*> theslot, bool use_track_canvas, b
doit = true;
}
+ /* any use of "keyboard mouse buttons" invalidates an existing grab
+ */
+
+ if (drag_info.item) {
+ drag_info.item->ungrab (GDK_CURRENT_TIME);
+ drag_info.item = 0;
+ }
+
if (doit) {
if (entered_regionview && can_select) {