Skip to content

Commit

Permalink
Merge pull request xmonad#925 from philib/master
Browse files Browse the repository at this point in the history
fix unintended window hiding
  • Loading branch information
slotThe authored Jan 31, 2025
2 parents 4fc3642 + 6a6d913 commit 6c1441d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
- Added `focusWorkspace` for focusing workspaces on the screen that they
belong to.

* `XMonad.Util.NamedScratchPad`

- Fix unintended window hiding in `nsSingleScratchpadPerWorkspace`.
Only hide the previously active scratchpad.

## 0.18.1 (August 20, 2024)

### Breaking Changes
Expand Down
2 changes: 1 addition & 1 deletion XMonad/Util/NamedScratchpad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ nsSingleScratchpadPerWorkspace :: NamedScratchpads -> X ()
nsSingleScratchpadPerWorkspace scratches =
nsHideOnCondition $ \ _lastFocus curFocus winSet hideScratch -> do
allScratchesButCurrent <-
filterM (liftA2 (<||>) (pure . (/= curFocus)) (`isNSP` scratches))
filterM (liftA2 (<&&>) (pure . (/= curFocus)) (`isNSP` scratches))
(W.index winSet)
whenX (isNSP curFocus scratches) $
for_ allScratchesButCurrent hideScratch
Expand Down

0 comments on commit 6c1441d

Please sign in to comment.