main: move xcb_init() call to bar's XCB backend

This commit is contained in:
Daniel Eklöf 2019-01-29 21:37:38 +01:00
parent 9239d4298c
commit deb9105d3e
2 changed files with 1 additions and 3 deletions

View file

@ -34,6 +34,7 @@ struct xcb_backend {
void *
bar_backend_xcb_new(void)
{
xcb_init();
return calloc(1, sizeof(struct xcb_backend));
}

3
main.c
View file

@ -17,7 +17,6 @@
#include "bar.h"
#include "config.h"
#include "yml.h"
#include "xcb.h"
#define LOG_MODULE "main"
#include "log.h"
@ -121,8 +120,6 @@ main(int argc, const char *const *argv)
return 1;
}
xcb_init();
bar->abort_fd = abort_fd;
thrd_t bar_thread;