Skip to content

Commit

Permalink
src/cycle.ts: Skip minimized windows curing cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
mafredri committed Jul 2, 2021
1 parent 11cea0f commit 216a35f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function cycle(dir: Direction, win?: Window) {
.windows()
// A window without a title is usually unfocusable,
// true for e.g. Finder, Chrome, etc.
.filter((w) => w.title() !== '');
.filter((w) => w.title() !== '' && !w.isMinimized());

// Do nothing when there is only one window.
if (others.length < 2) {
Expand Down

0 comments on commit 216a35f

Please sign in to comment.