diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-30 16:31:31 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-30 16:31:31 -0400 |
commit | 79b9a044b87a3537261cb9badb0cdf7d4587dd5c (patch) | |
tree | 930df25922ad40fc550d4c4aaf82dc7d4d4e48f5 | |
parent | 7b8fd17719e7b5bdd6a59e0ce4d9bf5c4d0773a4 (diff) |
add event-insensitivity to the list of conditions that causes a container to NOT add its children to the list of items-at-point
-rw-r--r-- | libs/canvas/item.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/canvas/item.cc b/libs/canvas/item.cc index f734ecf740..9be1f62d92 100644 --- a/libs/canvas/item.cc +++ b/libs/canvas/item.cc @@ -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); } |