Add Canvas::re_enter() which picks the current item again based on mouse pointer position and generates an enter event for it

This commit is contained in:
Paul Davis 2014-07-07 07:53:17 -04:00
parent d93526de76
commit 207e90adb1
2 changed files with 15 additions and 0 deletions

View file

@ -331,6 +331,14 @@ Canvas::queue_draw_item_area (Item* item, Rect area)
request_redraw (item->item_to_window (area));
}
void
GtkCanvas::re_enter ()
{
DEBUG_TRACE (PBD::DEBUG::CanvasEnterLeave, "re-enter canvas by request\n");
_current_item = 0;
pick_current_item (0);
}
/** Construct a GtkCanvas */
GtkCanvas::GtkCanvas ()
: _current_item (0)