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:
Daniel Eklöf 2019-01-13 15:25:39 +01:00
parent 65cfcfb2de
commit acdeff3b6e
14 changed files with 27 additions and 66 deletions

View file

@ -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) {