xmonad / xmonad-contrib

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

X.L.ShowWName should be a logHook #612

Closed slotThe closed 2 years ago

slotThe commented 2 years ago

Feature Description

As its name suggests, X.L.ShowWName is currently implemented as a layout modifier[^1]. This is, however, quite awkward to use and extend. It would be much better to have it as a logHook and—because this is sadly not that well-typed—keeping track of the "last" workspace via some extensible state. This would enable

The latter is probably also possible with the current implementation, but the former seems like a decent enough reason for the change.

[^1]: According to geekosaur, because it actually preceeds the existence of extensible state.