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

This reverts commit 37cae2f971.

This changes causes issues with recursive calls to the enter/leave event handling
stacks in gtk2_adour. Semantically, the change makes perfect sense, but finding
a solution to the recursion is challenging.
This commit is contained in:
Paul Davis 2023-03-30 09:53:49 -06:00
parent 151fceea54
commit 9e0c1ff510

View File

@ -275,10 +275,6 @@ 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;