From 7f82b918ae08bbd34e6032aeef38877f375ead59 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 28 May 2024 20:52:35 -0600 Subject: [PATCH] add DEBUG::TrackDrag to help try to track down #9711 --- gtk2_ardour/debug.cc | 1 + gtk2_ardour/debug.h | 1 + gtk2_ardour/editor.cc | 2 ++ 3 files changed, 4 insertions(+) diff --git a/gtk2_ardour/debug.cc b/gtk2_ardour/debug.cc index f83111c1cf..5c9895ba9a 100644 --- a/gtk2_ardour/debug.cc +++ b/gtk2_ardour/debug.cc @@ -31,3 +31,4 @@ PBD::DebugBits PBD::DEBUG::Accelerators = PBD::new_debug_bit ("accelerators"); PBD::DebugBits PBD::DEBUG::GUITiming = PBD::new_debug_bit ("guitiming"); PBD::DebugBits PBD::DEBUG::EngineControl = PBD::new_debug_bit ("enginecontrol"); PBD::DebugBits PBD::DEBUG::GuiStartup = PBD::new_debug_bit ("guistartup"); +PBD::DebugBits PBD::DEBUG::TrackDrag = PBD::new_debug_bit ("trackdrag"); diff --git a/gtk2_ardour/debug.h b/gtk2_ardour/debug.h index 14c0a60773..127b9dce3b 100644 --- a/gtk2_ardour/debug.h +++ b/gtk2_ardour/debug.h @@ -32,6 +32,7 @@ namespace PBD { extern DebugBits GUITiming; extern DebugBits EngineControl; extern DebugBits GuiStartup; + extern DebugBits TrackDrag; } } diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index c4a714d5b0..d173f5153f 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -7033,6 +7033,7 @@ void Editor::start_track_drag (TimeAxisView& tav, int y, Gtk::Widget& w) { track_drag = new TrackDrag (dynamic_cast (&tav)); + DEBUG_TRACE (DEBUG::TrackDrag, string_compose ("start track drag with %1\n", track_drag)); track_drag->drag_cursor = _cursors->move->gobj(); track_drag->predrag_cursor = gdk_window_get_cursor (edit_controls_vbox.get_window()->gobj()); @@ -7097,6 +7098,7 @@ Editor::end_track_drag () gdk_window_set_cursor (edit_controls_vbox.get_toplevel()->get_window()->gobj(), track_drag->predrag_cursor); } + DEBUG_TRACE (DEBUG::TrackDrag, string_compose ("ending track drag with %1\n", track_drag)); delete track_drag; track_drag = nullptr; }