Skip to content

Commit

Permalink
Don't re-minimize windows selected with alt tab on focus loss
Browse files Browse the repository at this point in the history
  • Loading branch information
tarek-y-ismail committed Dec 12, 2024
1 parent 478811a commit 075564d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/miral/application_selector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,13 @@ auto ApplicationSelector::advance(bool reverse, bool within_app) -> Window

auto next_state_to_preserve = tools.info_for(next_window.value()).state();
tools.select_active_window(next_window.value());
restore_state = next_state_to_preserve;

// Don't re-minimize windows selected with alt tab on focus loss
if(next_state_to_preserve != mir_window_state_minimized)
restore_state = next_state_to_preserve;
else
restore_state.reset();

return next_window.value();
}

Expand Down

0 comments on commit 075564d

Please sign in to comment.