summaryrefslogtreecommitdiff
path: root/gtk2_ardour/shuttle_control.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2012-12-30 19:52:46 +0000
committerRobin Gareus <robin@gareus.org>2012-12-30 19:52:46 +0000
commit19be6f4886207edc459b6d0a496e0aa599bf2391 (patch)
treed424673562b130547785353ab97d407d43086fae /gtk2_ardour/shuttle_control.cc
parent8f9a854b2809354126ecb038f16edbb7f2ce7c6e (diff)
fix #5233 - Varispeed is not draggable when tooltips are disabled
git-svn-id: svn://localhost/ardour2/branches/3.0@13745 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/shuttle_control.cc')
-rw-r--r--gtk2_ardour/shuttle_control.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/shuttle_control.cc b/gtk2_ardour/shuttle_control.cc
index 3422e7c2d0..aaa22f5089 100644
--- a/gtk2_ardour/shuttle_control.cc
+++ b/gtk2_ardour/shuttle_control.cc
@@ -260,6 +260,9 @@ ShuttleControl::on_button_press_event (GdkEventButton* ev)
shuttle_grabbed = true;
shuttle_speed_on_grab = _session->transport_speed ();
mouse_shuttle (ev->x, true);
+ gdk_pointer_grab(ev->window,false,
+ GdkEventMask( Gdk::POINTER_MOTION_MASK | Gdk::BUTTON_PRESS_MASK |Gdk::BUTTON_RELEASE_MASK),
+ NULL,NULL,ev->time);
}
break;
@@ -284,6 +287,7 @@ ShuttleControl::on_button_release_event (GdkEventButton* ev)
if (shuttle_grabbed) {
shuttle_grabbed = false;
remove_modal_grab ();
+ gdk_pointer_ungrab (GDK_CURRENT_TIME);
if (Config->get_shuttle_behaviour() == Sprung) {
_session->request_transport_speed (shuttle_speed_on_grab);