mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-25 05:15:41 +02:00
main: move xcb_init() call to bar's XCB backend
This commit is contained in:
parent
9239d4298c
commit
deb9105d3e
2 changed files with 1 additions and 3 deletions
|
@ -34,6 +34,7 @@ struct xcb_backend {
|
||||||
void *
|
void *
|
||||||
bar_backend_xcb_new(void)
|
bar_backend_xcb_new(void)
|
||||||
{
|
{
|
||||||
|
xcb_init();
|
||||||
return calloc(1, sizeof(struct xcb_backend));
|
return calloc(1, sizeof(struct xcb_backend));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
3
main.c
3
main.c
|
@ -17,7 +17,6 @@
|
||||||
#include "bar.h"
|
#include "bar.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "yml.h"
|
#include "yml.h"
|
||||||
#include "xcb.h"
|
|
||||||
|
|
||||||
#define LOG_MODULE "main"
|
#define LOG_MODULE "main"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
@ -121,8 +120,6 @@ main(int argc, const char *const *argv)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
xcb_init();
|
|
||||||
|
|
||||||
bar->abort_fd = abort_fd;
|
bar->abort_fd = abort_fd;
|
||||||
|
|
||||||
thrd_t bar_thread;
|
thrd_t bar_thread;
|
||||||
|
|
Loading…
Add table
Reference in a new issue