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:
thankyouverycool
2022-08-22 14:17:58 -04:00
committed by Andreas Kling
parent 788b16cbf8
commit 2b2c317c2d
3 changed files with 4 additions and 4 deletions

View File

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