From 0f49b5e7be73eb92aea42eca98295e8ffa8d558a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 17 Mar 2019 01:36:06 +0100 Subject: [PATCH] LibGUI: Ignore GWindow::update() with an empty rect. --- LibGUI/GWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) {