canvas: when an item is shown, potentially pick it as the current item
This commit is contained in:
parent
b36a0493df
commit
37cae2f971
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user