Commit graph

11 commits

Author SHA1 Message Date
Daniel Eklöf
5306ebd4ed bar: call refresh() after all modules have been loaded
This also means that modules do *not* have to call bar->refresh() just
before/after calling module_signal_ready().

As long as the module's initial state has been correctly/completely
set up before it calls module_signal_ready(), the module *only* has to
call bar->refresh() when it's state changes.
2018-12-26 11:48:09 +01:00
Daniel Eklöf
3413232ed6 module: add new function module_signal_ready() 2018-12-19 20:23:53 +01:00
Daniel Eklöf
a3eb7ebc08 bar: wait for all modules to have started up before continuing
After starting all the module threads, wait for all modules to have
signalled "ready" before continuing.

This will allow modules to do initial setup, and knowing that
content() will *not* be called until they've signalled "ready".
2018-12-19 19:41:25 +01:00
Daniel Eklöf
7f0f096ba4 module: begin_expose() and content() take a non-const module pointer 2018-12-19 19:03:19 +01:00
Daniel Eklöf
b3a3990347 bar: log *which* event that is unimplemented 2018-12-18 19:42:47 +01:00
Daniel Eklöf
452669d6de bar: lower case initial letter in log message 2018-12-18 19:37:03 +01:00
Daniel Eklöf
817ce49e3b bar: use log framework 2018-12-18 19:24:26 +01:00
Daniel Eklöf
8ae89820db bar: use log framework 2018-12-17 20:29:25 +01:00
Daniel Eklöf
921cda0a81 bar: make location configurable (top or bottom) 2018-11-17 11:54:14 +01:00
Daniel Eklöf
7c468c20c0 xcb: add xcb_init(): checks the x server + extensions, and caches atoms 2018-11-17 11:47:34 +01:00
Daniel Eklöf
8bf8a398b9 initial commit: wip 2018-11-17 11:30:33 +01:00