mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 20:35:06 +00:00
LibGUI: Ignore GWindow::update() with an empty rect.
This commit is contained in:
parent
01a2035ecf
commit
0f49b5e7be
1 changed files with 2 additions and 0 deletions
|
@ -250,6 +250,8 @@ bool GWindow::is_visible() const
|
||||||
|
|
||||||
void GWindow::update(const Rect& a_rect)
|
void GWindow::update(const Rect& a_rect)
|
||||||
{
|
{
|
||||||
|
if (a_rect.is_empty())
|
||||||
|
return;
|
||||||
if (!m_window_id)
|
if (!m_window_id)
|
||||||
return;
|
return;
|
||||||
for (auto& pending_rect : m_pending_paint_event_rects) {
|
for (auto& pending_rect : m_pending_paint_event_rects) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue