Skip to content

Commit

Permalink
Merge pull request #445 from LSLeary/current-wins
Browse files Browse the repository at this point in the history
Let the current screen win in the fight for dupes
  • Loading branch information
slotThe committed Apr 3, 2023
2 parents aa9dd26 + 5ee76ca commit eeac754
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

### Bug Fixes

* Duplicated floats (e.g. from X.A.CopyToAll) no longer escape to inactive
screens.

## 0.17.2 (April 2, 2023)

### Bug Fixes
Expand Down
1 change: 1 addition & 0 deletions src/XMonad/Operations.hs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ windows f = do
let m = W.floating ws
flt = [(fw, scaleRationalRect viewrect r)
| fw <- filter (`M.member` m) (W.index this)
, fw `notElem` vis
, Just r <- [M.lookup fw m]]
vs = flt ++ rs

Expand Down

0 comments on commit eeac754

Please sign in to comment.