diff --git a/Libraries/LibGUI/StatusBar.cpp b/Libraries/LibGUI/StatusBar.cpp index 9ade4429c25..0d3921f5f9d 100644 --- a/Libraries/LibGUI/StatusBar.cpp +++ b/Libraries/LibGUI/StatusBar.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -92,4 +93,12 @@ void StatusBar::paint_event(PaintEvent& event) painter.fill_rect(rect(), palette().button()); } +void StatusBar::resize_event(ResizeEvent& event) +{ + if (window()) + m_corner->set_visible(window()->is_maximized() ? false : true); + + Widget::resize_event(event); +} + } diff --git a/Libraries/LibGUI/StatusBar.h b/Libraries/LibGUI/StatusBar.h index 411f525856d..9615d9374fc 100644 --- a/Libraries/LibGUI/StatusBar.h +++ b/Libraries/LibGUI/StatusBar.h @@ -43,6 +43,7 @@ public: protected: explicit StatusBar(int label_count = 1); virtual void paint_event(PaintEvent&) override; + virtual void resize_event(ResizeEvent&) override; private: NonnullRefPtr