Skip to content

Commit

Permalink
Raise and focus selected window if not visible in advance
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 478811a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/miral/application_selector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ auto ApplicationSelector::advance(bool reverse, bool within_app) -> Window
// This means that there is no other selectable window in the list but
// the currently selected one, so we don't need to select anything.
if (*it == selected)
{
if(!tools.info_for(selected).is_visible())
tools.select_active_window(selected);
return selected;
}

if (within_app)
{
Expand Down Expand Up @@ -281,4 +285,4 @@ auto ApplicationSelector::find(Window window) -> std::vector<Window>::iterator
{
return window == other;
});
}
}

0 comments on commit 478811a

Please sign in to comment.