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:
parent
8646f8f4ad
commit
23b659e9c3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue