13
0

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
This commit is contained in:
Robin Gareus 2012-12-30 19:52:46 +00:00
parent 8f9a854b28
commit 19be6f4886

View File

@ -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);