summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-11 18:59:51 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-11 19:00:24 +0100
commit6e2a29d038829ab3e7f9cc22f43d896a14c42e33 (patch)
tree3a2bebee11ed9495518d33d3c778b6b17cc0ce66 /Userland/Services
parent38f11cc1ba31e13e0f748781a654a98eb3a45d19 (diff)
downloadserenity-6e2a29d038829ab3e7f9cc22f43d896a14c42e33.zip
WindowServer: Don't open system menu on super key press while dragging
Diffstat (limited to 'Userland/Services')
-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 229133bd05..e86f204da8 100644
--- a/Userland/Services/WindowServer/WindowManager.cpp
+++ b/Userland/Services/WindowServer/WindowManager.cpp
@@ -1174,7 +1174,7 @@ void WindowManager::event(Core::Event& event)
m_previous_event_is_key_down_logo = true;
} else if (m_previous_event_is_key_down_logo) {
m_previous_event_is_key_down_logo = false;
- if (key_event.type() == Event::KeyUp && key_event.key() == Key_Super) {
+ if (!m_dnd_client && key_event.type() == Event::KeyUp && key_event.key() == Key_Super) {
if (MenuManager::the().has_open_menu()) {
MenuManager::the().close_everyone();
} else {