Skip to content

Commit

Permalink
Focus and raise windows on alt+tab completion
Browse files Browse the repository at this point in the history
  • Loading branch information
tarek-y-ismail committed Dec 12, 2024
1 parent 23fc847 commit fa1e09b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/miral/minimal_window_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,11 @@ bool miral::MinimalWindowManager::handle_keyboard_event(MirKeyboardEvent const*
switch (mir_keyboard_event_scan_code(event))
{
case KEY_LEFTALT:
self->application_selector.complete();
{
auto new_window = self->application_selector.complete();
if(new_window)
tools.select_active_window(new_window);
}
[[fallthrough]];
default:;
}
Expand Down

0 comments on commit fa1e09b

Please sign in to comment.