xmonad / xmonad-contrib

Contributed modules for xmonad
https://xmonad.org
BSD 3-Clause "New" or "Revised" License
579 stars 272 forks source link

`dynamicLogString` forces its result and recovers #802

Closed geekosaur closed 1 year ago

geekosaur commented 1 year ago

Description

Originally, dynamicLogString could have a bottom hidden in it and thereby crash the logHook. Under some circumstances (see #801) this could cause xmonad to get stuck. We now force the result, and dynamicLogString catches the exception and substitutes a message (currently "_|_"). Use dynamicLogString' for the old behavior.

Closes: #801

Checklist