summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LibGUI/GWindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/LibGUI/GWindow.cpp b/LibGUI/GWindow.cpp
index 59c5710cca..d2f41176ef 100644
--- a/LibGUI/GWindow.cpp
+++ b/LibGUI/GWindow.cpp
@@ -144,6 +144,10 @@ void GWindow::set_rect(const Rect& a_rect)
request.window_id = m_window_id;
request.window.rect = a_rect;
GEventLoop::current().post_message_to_server(request);
+ if (m_back_bitmap->size() != a_rect.size())
+ m_back_bitmap = nullptr;
+ if (m_front_bitmap->size() != a_rect.size())
+ m_front_bitmap = nullptr;
if (m_main_widget)
m_main_widget->resize(a_rect.size());
}