From 19be6f4886207edc459b6d0a496e0aa599bf2391 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 30 Dec 2012 19:52:46 +0000 Subject: 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 --- gtk2_ardour/shuttle_control.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gtk2_ardour') 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); -- cgit v1.2.3