mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 06:37:52 +00:00
WindowServer: Ignore attempts to make menu windows the active window.
This commit is contained in:
@@ -741,6 +741,11 @@ void WSWindowManager::on_message(WSMessage& message)
|
||||
void WSWindowManager::set_active_window(WSWindow* window)
|
||||
{
|
||||
LOCKER(m_lock);
|
||||
if (window->type() == WSWindowType::Menu) {
|
||||
dbgprintf("WSWindowManager: Attempted to make a menu window active.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if (window == m_active_window.ptr())
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user