mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 08:15:40 +02:00
module: remove ready_fd
All modules are expected to handle a call to content() after having been instantiated. I.e. modules *cannot* even expect run() to have started running.
This commit is contained in:
parent
65cfcfb2de
commit
acdeff3b6e
14 changed files with 27 additions and 66 deletions
|
@ -189,7 +189,6 @@ run(struct module_run_context *ctx)
|
|||
m->conn = xcb_connect(NULL, NULL);
|
||||
if (m->conn == NULL) {
|
||||
LOG_ERR("failed to connect to X");
|
||||
module_signal_ready(ctx);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -218,8 +217,7 @@ run(struct module_run_context *ctx)
|
|||
update_active_window(m);
|
||||
update_application(mod);
|
||||
update_title(mod);
|
||||
|
||||
module_signal_ready(ctx);
|
||||
mod->bar->refresh(mod->bar);
|
||||
|
||||
int xcb_fd = xcb_get_file_descriptor(m->conn);
|
||||
while (true) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue