diff --git a/Libraries/LibGUI/GWidget.cpp b/Libraries/LibGUI/GWidget.cpp index 1aa678c846d..ae7f1a0c3a9 100644 --- a/Libraries/LibGUI/GWidget.cpp +++ b/Libraries/LibGUI/GWidget.cpp @@ -456,6 +456,14 @@ void GWidget::set_visible(bool visible) parent->invalidate_layout(); if (m_visible) update(); + + if (m_visible) { + GShowEvent e; + event(e); + } else { + GHideEvent e; + event(e); + } } bool GWidget::spans_entire_window_horizontally() const