mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
WindowServer: Don't let modals minimize themselves
But do allow them to remain minimizable by a parent. This is a nice ergonomics fix to allow a parent window to quickly minimize and restore all its modal children.
This commit is contained in:
parent
788b16cbf8
commit
2b2c317c2d
3 changed files with 4 additions and 4 deletions
|
@ -1673,7 +1673,7 @@ void WindowManager::process_key_event(KeyEvent& event)
|
|||
maximize_windows(*active_input_window, false);
|
||||
return;
|
||||
}
|
||||
if (active_input_window->is_minimizable())
|
||||
if (active_input_window->is_minimizable() && !active_input_window->is_modal())
|
||||
minimize_windows(*active_input_window, true);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue