mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:58:13 +00:00
WindowServer: Ignore attempts to make menu windows the active window.
This commit is contained in:
parent
7c53171b0a
commit
dc200923f2
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue