mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibGUI: Fix widgets not being occluded
Widget::is_visible_for_timer_purposes needs to also consult with the base implementation, which ultimately checks the owning Window's visibility and occlusion state. Widget::is_visible merely determins whether a widget should be visible or not, regardless of the window's state. Fixes #8825
This commit is contained in:
parent
220886db4c
commit
2f754013a1
Notes:
sideshowbarker
2024-07-18 08:47:59 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/2f754013a19 Pull-request: https://github.com/SerenityOS/serenity/pull/8849
1 changed files with 1 additions and 1 deletions
|
@ -1135,7 +1135,7 @@ bool Widget::has_pending_drop() const
|
|||
|
||||
bool Widget::is_visible_for_timer_purposes() const
|
||||
{
|
||||
return is_visible();
|
||||
return is_visible() && Object::is_visible_for_timer_purposes();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue