Skip to content

Commit dc20092

Browse files
committed
WindowServer: Ignore attempts to make menu windows the active window.
1 parent 7c53171 commit dc20092

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

WindowServer/WSWindowManager.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,11 @@ void WSWindowManager::on_message(WSMessage& message)
741741
void WSWindowManager::set_active_window(WSWindow* window)
742742
{
743743
LOCKER(m_lock);
744+
if (window->type() == WSWindowType::Menu) {
745+
dbgprintf("WSWindowManager: Attempted to make a menu window active.\n");
746+
return;
747+
}
748+
744749
if (window == m_active_window.ptr())
745750
return;
746751

0 commit comments

Comments
 (0)