add DEBUG::TrackDrag to help try to track down #9711
This commit is contained in:
parent
875e89ff67
commit
7f82b918ae
@ -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");
|
||||
|
@ -32,6 +32,7 @@ namespace PBD {
|
||||
extern DebugBits GUITiming;
|
||||
extern DebugBits EngineControl;
|
||||
extern DebugBits GuiStartup;
|
||||
extern DebugBits TrackDrag;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -7033,6 +7033,7 @@ void
|
||||
Editor::start_track_drag (TimeAxisView& tav, int y, Gtk::Widget& w)
|
||||
{
|
||||
track_drag = new TrackDrag (dynamic_cast<RouteTimeAxisView*> (&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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user