diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-07-18 10:43:46 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-07-18 10:43:52 -0400 |
commit | 5044feec955d805df31baf789c55f377ada7c26c (patch) | |
tree | 6c9f7bddab2452d9eca1d95d2a4a22ef521ac438 /libs | |
parent | b2b736d596123de52dac700db769ac4eb576da5c (diff) |
more canvas debugging for current item tracing
Diffstat (limited to 'libs')
-rw-r--r-- | libs/canvas/canvas.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/canvas/canvas.cc b/libs/canvas/canvas.cc index adf0498128..b61afed751 100644 --- a/libs/canvas/canvas.cc +++ b/libs/canvas/canvas.cc @@ -435,6 +435,7 @@ GtkCanvas::pick_current_item (Duple const & point, int state) if (within_items.front() == _current_item) { /* uppermost item at point is already _current_item */ + DEBUG_TRACE (PBD::DEBUG::CanvasEnterLeave, string_compose ("CURRENT ITEM %1/%2\n", _new_current_item->whatami(), _current_item->name)); return; } @@ -444,6 +445,13 @@ GtkCanvas::pick_current_item (Duple const & point, int state) if (_new_current_item != _current_item) { deliver_enter_leave (point, state); } + + if (_current_item) { + DEBUG_TRACE (PBD::DEBUG::CanvasEnterLeave, string_compose ("CURRENT ITEM %1/%2\n", _new_current_item->whatami(), _current_item->name)); + } else { + DEBUG_TRACE (PBD::DEBUG::CanvasEnterLeave, "--- no current item\n"); + } + } /** Deliver a series of enter & leave events based on the pointer position being at window |