1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 13:55:08 +00:00

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

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