summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-18 12:47:25 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-18 17:40:05 +0200
commit58823c474e003815f279af7ebd54dbffb834e6d8 (patch)
tree881924fc42ef42c4e37772e535fadefefca44098
parent82a945fa7e69b29100495d1189b495582e1689d6 (diff)
downloadserenity-58823c474e003815f279af7ebd54dbffb834e6d8.zip
WindowServer: Don't let super key open system menu while tracking input
Previously it was possible to open the system menu while tracking mouse input after a mousedown event.
-rw-r--r--Userland/Services/WindowServer/WindowManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/WindowManager.cpp b/Userland/Services/WindowServer/WindowManager.cpp
index e63860cd01..6ccf69c645 100644
--- a/Userland/Services/WindowServer/WindowManager.cpp
+++ b/Userland/Services/WindowServer/WindowManager.cpp
@@ -1194,7 +1194,7 @@ void WindowManager::event(Core::Event& event)
m_previous_event_was_super_keydown = true;
} else if (m_previous_event_was_super_keydown) {
m_previous_event_was_super_keydown = false;
- if (!m_dnd_client && key_event.type() == Event::KeyUp && key_event.key() == Key_Super) {
+ if (!m_dnd_client && !m_active_input_tracking_window && key_event.type() == Event::KeyUp && key_event.key() == Key_Super) {
tell_wms_super_key_pressed();
return;
}