mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
WindowServer: Moving a window to front should always activate it.
So instead of having move_to_front() + set_active_window(), let's have move_to_front_and_make_active().
This commit is contained in:
parent
56ee8bfe2a
commit
e84823360d
3 changed files with 12 additions and 18 deletions
|
@ -34,10 +34,8 @@ void WSWindowSwitcher::on_key_event(const WSKeyEvent& event)
|
|||
{
|
||||
if (event.type() == WSMessage::KeyUp) {
|
||||
if (event.key() == Key_Logo) {
|
||||
if (auto* window = selected_window()) {
|
||||
WSWindowManager::the().set_active_window(window);
|
||||
WSWindowManager::the().move_to_front(*window);
|
||||
}
|
||||
if (auto* window = selected_window())
|
||||
WSWindowManager::the().move_to_front_and_make_active(*window);
|
||||
WSWindowManager::the().set_highlight_window(nullptr);
|
||||
hide();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue