Skip to content

Commit

Permalink
handle atom 0
Browse files Browse the repository at this point in the history
  • Loading branch information
geekosaur committed May 31, 2024
1 parent c21f9e6 commit 3478534
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions XMonad/Hooks/DebugEvents.hs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ debugEventsHook' _ = return ()

-- | Emit information about an atom.
atomName :: Atom -> X String
atomName 0 = return "-none-"
atomName a = withDisplay $ \d ->
io $ fromMaybe ("(unknown atom " ++ show a ++ ")") <$> getAtomName d a

Expand Down

0 comments on commit 3478534

Please sign in to comment.