mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-31 04:01:51 -07:00
At the moment, we re-calculate the prompt width every time we want to (re)draw the prompt window. This is unnecessary, as the screen dimensions or the preferred position changing _while the prompt is active_ is extremely unlikely. This now calculates the desired width at the start of the prompts event loop and threads it through to the places that need it.