Merge pull request #445 from LSLeary/current-wins

Let the current screen win in the fight for dupes
This commit is contained in:
Tony Zorman 2023-04-03 14:48:50 +02:00 committed by GitHub
commit eeac754ac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,9 @@
### Bug Fixes ### Bug Fixes
* Duplicated floats (e.g. from X.A.CopyToAll) no longer escape to inactive
screens.
## 0.17.2 (April 2, 2023) ## 0.17.2 (April 2, 2023)
### Bug Fixes ### Bug Fixes

View File

@ -197,6 +197,7 @@ windows f = do
let m = W.floating ws let m = W.floating ws
flt = [(fw, scaleRationalRect viewrect r) flt = [(fw, scaleRationalRect viewrect r)
| fw <- filter (`M.member` m) (W.index this) | fw <- filter (`M.member` m) (W.index this)
, fw `notElem` vis
, Just r <- [M.lookup fw m]] , Just r <- [M.lookup fw m]]
vs = flt ++ rs vs = flt ++ rs