forked from external/yambar
misc: make use of the xcb-aux library
This commit is contained in:
parent
9d5bbe0566
commit
dff3104c85
5 changed files with 17 additions and 40 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <poll.h>
|
||||
|
||||
#include <xcb/xcb.h>
|
||||
#include <xcb/xcb_aux.h>
|
||||
#include <xcb/xcb_event.h>
|
||||
|
||||
#define LOG_MODULE "xwindow"
|
||||
|
@ -204,8 +205,7 @@ run(struct module *mod)
|
|||
return 1;
|
||||
}
|
||||
|
||||
const xcb_setup_t *setup = xcb_get_setup(m->conn);
|
||||
xcb_screen_t *screen = xcb_setup_roots_iterator(setup).data;
|
||||
xcb_screen_t *screen = xcb_aux_get_screen(m->conn, default_screen);
|
||||
m->root_win = screen->root;
|
||||
|
||||
/* Need a window(?) to be able to process events */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue