1
Fork 0
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:
Andreas Kling 2019-02-14 10:56:45 +01:00
parent 7c53171b0a
commit dc200923f2

View file

@ -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;