mirror of
https://github.com/xmonad/xmonad.git
synced 2025-05-19 08:30:21 -07:00
Plan for statusbar/multithreading
This commit is contained in:
parent
b1b7a56850
commit
ac09d64e06
16
TODO
16
TODO
@ -0,0 +1,16 @@
|
||||
- think about the statusbar/multithreading.
|
||||
Three shared TVars:
|
||||
windowTitle :: TVar String
|
||||
workspace :: TVar Int
|
||||
statusText :: TVar String
|
||||
Three threads:
|
||||
Main thread, handles all of the events that it handles now. When
|
||||
necessary, it writes to workspace or windowTitle
|
||||
|
||||
Status IO thread, the algorithm is something like this:
|
||||
forever $ do
|
||||
s <- getLine
|
||||
atomic (writeTVar statusText s)
|
||||
|
||||
Statusbar drawing thread, waits for changes in all three TVars, and
|
||||
redraws whenever it finds a change.
|
Loading…
x
Reference in New Issue
Block a user