diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-14 10:56:45 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-14 10:56:45 +0100 |
commit | dc200923f2cd05bfea742205e6ff8adaf979a64f (patch) | |
tree | cf6267a6a414ffdd12204e3b1a8940421132fd4e | |
parent | 7c53171b0acfc98ee57c0322a58b65aa607ed26b (diff) | |
download | serenity-dc200923f2cd05bfea742205e6ff8adaf979a64f.zip |
WindowServer: Ignore attempts to make menu windows the active window.
-rw-r--r-- | WindowServer/WSWindowManager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/WindowServer/WSWindowManager.cpp b/WindowServer/WSWindowManager.cpp index 4d07203b6b..4fc2f55f50 100644 --- a/WindowServer/WSWindowManager.cpp +++ b/WindowServer/WSWindowManager.cpp @@ -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; |