mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibGUI: Don't fire visibility-tracking timers in non-visible widgets
We were already avoiding firing timers within non-visible *windows*. This patch extends the mechanism to support timers within non-visible *widgets*.
This commit is contained in:
@@ -1114,4 +1114,9 @@ bool Widget::has_pending_drop() const
|
||||
return Application::the()->pending_drop_widget() == this;
|
||||
}
|
||||
|
||||
bool Widget::is_visible_for_timer_purposes() const
|
||||
{
|
||||
return is_visible();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user