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;