From 9e0c1ff510f0bca7a804bb8762d091a333f722fc Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 30 Mar 2023 09:53:49 -0600 Subject: [PATCH] Revert "canvas: when an item is shown, potentially pick it as the current item" This reverts commit 37cae2f971f13b9f5bc9a098074da2a8edffbb3c. 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. --- libs/canvas/canvas.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libs/canvas/canvas.cc b/libs/canvas/canvas.cc index d93a3548eb..08a1aac116 100644 --- a/libs/canvas/canvas.cc +++ b/libs/canvas/canvas.cc @@ -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;