1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00

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.
This commit is contained in:
Linus Groh 2021-04-05 16:39:18 +02:00 committed by Andreas Kling
parent 8646f8f4ad
commit 23b659e9c3

View file

@ -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);