diff --git a/src/Widget.cpp b/src/Widget.cpp index 27fc3e7..5ca0e72 100644 --- a/src/Widget.cpp +++ b/src/Widget.cpp @@ -202,9 +202,7 @@ void Widget::handle_relayout_subtree(RelayoutSubtreeEvent &event) { m_window_relative = compute_window_relative(); - if (m_layout) { - m_layout->run(); - } else { + if (!m_layout || !m_layout->run()) { for (auto child : m_children) { child->dispatch_event(event); }