mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +00:00
LibGUI: Ignore GWindow::update() with an empty rect.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user