소스 검색

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) {