ソースを参照

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

Andreas Kling 6 年 前
コミット
0f49b5e7be
1 ファイル変更2 行追加0 行削除
  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) {