13
0

canvas: when an item is shown, potentially pick it as the current item

This commit is contained in:
Paul Davis 2023-03-11 20:31:49 -07:00
parent b36a0493df
commit 37cae2f971

View File

@ -275,6 +275,10 @@ Canvas::item_shown_or_hidden (Item* item)
{
Rect bbox = item->bounding_box ();
if (bbox) {
if (item->visible() && !item->ignore_events()) {
pick_current_item (0); /* no mouse state */
}
if (_queue_draw_frozen) {
frozen_area = frozen_area.extend (compute_draw_item_area (item, bbox));
return;