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

This commit is contained in:
Andreas Kling 2019-03-17 01:36:06 +01:00
parent 01a2035ecf
commit 0f49b5e7be
Notes: sideshowbarker 2024-07-19 15:01:21 +09:00

View File

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