summaryrefslogtreecommitdiff
path: root/LibGUI
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-17 01:36:06 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-17 01:36:38 +0100
commit0f49b5e7be73eb92aea42eca98295e8ffa8d558a (patch)
tree920eb88dff5dc7f3004ea13203b5c858a719019a /LibGUI
parent01a2035ecffe1c9ea8321f84d599e74bcaf817b5 (diff)
downloadserenity-0f49b5e7be73eb92aea42eca98295e8ffa8d558a.zip
LibGUI: Ignore GWindow::update() with an empty rect.
Diffstat (limited to 'LibGUI')
-rw-r--r--LibGUI/GWindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/LibGUI/GWindow.cpp b/LibGUI/GWindow.cpp
index b079e2e988..5e246ac342 100644
--- a/LibGUI/GWindow.cpp
+++ b/LibGUI/GWindow.cpp
@@ -250,6 +250,8 @@ bool GWindow::is_visible() const
void GWindow::update(const Rect& a_rect)
{
+ if (a_rect.is_empty())
+ return;
if (!m_window_id)
return;
for (auto& pending_rect : m_pending_paint_event_rects) {