mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 21:26:26 +01:00
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:
parent
d93526de76
commit
207e90adb1
2 changed files with 15 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue