Browse Source

LibGUI: Ignore GWindow::update() with an empty rect.

Andreas Kling 6 năm trước cách đây
mục cha
commit
0f49b5e7be
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      LibGUI/GWindow.cpp

+ 2 - 0
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) {