Add missing header files
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
4bfed7f7e3
commit
d12b3c1e1d
11
src/common.h
11
src/common.h
|
@ -65,6 +65,7 @@
|
|||
#include <ctype.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <xcb/composite.h>
|
||||
#include <xcb/render.h>
|
||||
#include <xcb/damage.h>
|
||||
|
@ -871,7 +872,7 @@ static inline xcb_atom_t
|
|||
get_atom(session_t *ps, const char *atom_name) {
|
||||
xcb_intern_atom_reply_t *reply =
|
||||
xcb_intern_atom_reply(ps->c,
|
||||
xcb_intern_atom(ps->c, False, strlen(atom_name), atom_name),
|
||||
xcb_intern_atom(ps->c, 0, strlen(atom_name), atom_name),
|
||||
NULL);
|
||||
|
||||
xcb_atom_t atom = XCB_NONE;
|
||||
|
@ -993,14 +994,6 @@ set_ignore(session_t *ps, unsigned long sequence) {
|
|||
ps->ignore_tail = &i->next;
|
||||
}
|
||||
|
||||
/**
|
||||
* Ignore X errors caused by next X request.
|
||||
*/
|
||||
static inline void
|
||||
set_ignore_next(session_t *ps) {
|
||||
set_ignore(ps, NextRequest(ps->dpy));
|
||||
}
|
||||
|
||||
/**
|
||||
* Ignore X errors caused by given X request.
|
||||
*/
|
||||
|
|
|
@ -249,7 +249,6 @@ static inline bool win_bounding_shaped(const session_t *ps, xcb_window_t wid) {
|
|||
}
|
||||
|
||||
wintype_t wid_get_prop_wintype(session_t *ps, xcb_window_t wid) {
|
||||
set_ignore_next(ps);
|
||||
winprop_t prop = wid_get_prop(ps, wid, ps->atom_win_type, 32L, XCB_ATOM_ATOM, 32);
|
||||
|
||||
for (unsigned i = 0; i < prop.nitems; ++i) {
|
||||
|
|
Loading…
Reference in New Issue