mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-08 09:35:15 +00:00
LibGUI: Don't consider a GWidget focused if the window is inactive.
This commit is contained in:
@@ -145,6 +145,8 @@ bool GWidget::is_focused() const
|
||||
auto* win = window();
|
||||
if (!win)
|
||||
return false;
|
||||
if (!win->is_active())
|
||||
return false;
|
||||
return win->focused_widget() == this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user