diff options
author | Linus Groh <mail@linusgroh.de> | 2021-04-05 16:39:18 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-05 17:06:58 +0200 |
commit | 23b659e9c334b53c9d9e5718345632349f81d84e (patch) | |
tree | 4c0f7f3741d8dedb157d7187e6278ef0ea2c19af /Userland/Services | |
parent | 8646f8f4ad3cc7a2bdd6278e6dc3422f5a667814 (diff) | |
download | serenity-23b659e9c334b53c9d9e5718345632349f81d84e.zip |
WindowServer: Exclude WindowType::Desktop windows from Super key actions
The desktop window is (and must be) considered resizable by
WindowServer, but none of the Super+<something> key actions should apply
to it (window minimizing/maximizing/tiling).
Fixes #5363.
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/WindowServer/WindowManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/WindowManager.cpp b/Userland/Services/WindowServer/WindowManager.cpp index 504111eb5c..181d7ca467 100644 --- a/Userland/Services/WindowServer/WindowManager.cpp +++ b/Userland/Services/WindowServer/WindowManager.cpp @@ -1211,7 +1211,7 @@ void WindowManager::event(Core::Event& event) } if (m_active_input_window) { - if (key_event.type() == Event::KeyDown && key_event.modifiers() == Mod_Super) { + if (key_event.type() == Event::KeyDown && key_event.modifiers() == Mod_Super && m_active_input_window->type() != WindowType::Desktop) { if (key_event.key() == Key_Down) { if (m_active_input_window->is_resizable() && m_active_input_window->is_maximized()) { maximize_windows(*m_active_input_window, false); |