mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 01:08:48 +00:00
LibGUI: Ignore GWindow::update() with an empty rect.
This commit is contained in:
parent
01a2035ecf
commit
0f49b5e7be
Notes:
sideshowbarker
2024-07-19 15:01:21 +09:00
Author: https://github.com/awesomekling
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)
|
||||
{
|
||||
if (a_rect.is_empty())
|
||||
return;
|
||||
if (!m_window_id)
|
||||
return;
|
||||
for (auto& pending_rect : m_pending_paint_event_rects) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue