add event-insensitivity to the list of conditions that causes a container to NOT...
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 30 Jun 2014 20:31:31 +0000 (16:31 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 30 Jun 2014 20:31:31 +0000 (16:31 -0400)
libs/canvas/item.cc

index f734ecf7403b1eb482f225f3d412a517e4cf50ba..9be1f62d9246f31a36bd4e961749d03894cdef12 100644 (file)
@@ -960,12 +960,13 @@ Item::add_items_at_point (Duple const point, vector<Item const *>& items) const
        }
 
        /* recurse and add any items within our group that contain point.
-          Our children are only considered visible if we are 
+          Our children are only considered visible if we are, and similarly
+          only if we do not ignore events.
        */
 
        vector<Item*> our_items;
 
-       if (!_items.empty() && visible()) {
+       if (!_items.empty() && visible() && !_ignore_events) {
                ensure_lut ();
                our_items = _lut->items_at_point (point);
        }