From d12b3c1e1d0b8da7a571ee85c899a0ad8604b2ac Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 30 Dec 2018 08:00:22 +0000 Subject: [PATCH] Add missing header files Signed-off-by: Yuxuan Shui --- src/common.h | 11 ++--------- src/win.c | 1 - src/x.c | 1 + 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/common.h b/src/common.h index 3989313..30fbafd 100644 --- a/src/common.h +++ b/src/common.h @@ -65,6 +65,7 @@ #include #include +#include #include #include #include @@ -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. */ diff --git a/src/win.c b/src/win.c index 6d399a0..6425c46 100644 --- a/src/win.c +++ b/src/win.c @@ -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) { diff --git a/src/x.c b/src/x.c index ee9cf1e..2543011 100644 --- a/src/x.c +++ b/src/x.c @@ -2,6 +2,7 @@ // Copyright (c) 2018 Yuxuan Shui #include +#include #include #include #include