summaryrefslogtreecommitdiff
path: root/WindowServer
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-14 10:56:45 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-14 10:56:45 +0100
commitdc200923f2cd05bfea742205e6ff8adaf979a64f (patch)
treecf6267a6a414ffdd12204e3b1a8940421132fd4e /WindowServer
parent7c53171b0acfc98ee57c0322a58b65aa607ed26b (diff)
downloadserenity-dc200923f2cd05bfea742205e6ff8adaf979a64f.zip
WindowServer: Ignore attempts to make menu windows the active window.
Diffstat (limited to 'WindowServer')
-rw-r--r--WindowServer/WSWindowManager.cpp5
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;