From e02a96ec6bf657b6dab1c6e3e6f446ebdaebd1d0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 18 Apr 2022 12:22:56 -0600 Subject: [PATCH] all Drag objects use an RAII object to block binding activation while they exist --- gtk2_ardour/editor_drag.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h index 6e87c570be..d1f9df5874 100644 --- a/gtk2_ardour/editor_drag.h +++ b/gtk2_ardour/editor_drag.h @@ -37,6 +37,8 @@ #include "canvas/types.h" +#include "gtkmm2ext/bindings.h" + #include "cursor_context.h" #include "editor_items.h" #include "mouse_cursors.h" @@ -332,6 +334,8 @@ private: CursorContext::Handle _cursor_ctx; ///< cursor change context bool _constraint_pressed; ///< if the keyboard indicated constraint modifier was pressed on start_grab() int _grab_button; + + Gtkmm2ext::Bindings::DragsBlockBindings binding_blocker; }; class RegionDrag;