Browse Source

Fix certain Widget events (ContextDestroyEvent, ContextDestroyEvent, etc) not recursing when Widget is invisible.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
414500a390
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      include/widget/Widget.hpp

+ 3
- 3
include/widget/Widget.hpp View File

@@ -145,9 +145,9 @@ struct Widget : WeakBase {
if (!e.isPropagating())
break;
Widget* child = *it;
// Filter child by visibility
if (!child->visible)
continue;
// Don't filter child by visibility. Typically only position events need to be filtered by visibility.
// if (!child->visible)
// continue;

// Clone event for (currently) no reason
TEvent e2 = e;


Loading…
Cancel
Save