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 <ctype.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
|
#include <X11/Xlib.h>
|
||||||
#include <xcb/composite.h>
|
#include <xcb/composite.h>
|
||||||
#include <xcb/render.h>
|
#include <xcb/render.h>
|
||||||
#include <xcb/damage.h>
|
#include <xcb/damage.h>
|
||||||
|
@ -871,7 +872,7 @@ static inline xcb_atom_t
|
||||||
get_atom(session_t *ps, const char *atom_name) {
|
get_atom(session_t *ps, const char *atom_name) {
|
||||||
xcb_intern_atom_reply_t *reply =
|
xcb_intern_atom_reply_t *reply =
|
||||||
xcb_intern_atom_reply(ps->c,
|
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);
|
NULL);
|
||||||
|
|
||||||
xcb_atom_t atom = XCB_NONE;
|
xcb_atom_t atom = XCB_NONE;
|
||||||
|
@ -993,14 +994,6 @@ set_ignore(session_t *ps, unsigned long sequence) {
|
||||||
ps->ignore_tail = &i->next;
|
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.
|
* 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) {
|
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);
|
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) {
|
for (unsigned i = 0; i < prop.nitems; ++i) {
|
||||||
|
|
1
src/x.c
1
src/x.c
|
@ -2,6 +2,7 @@
|
||||||
// Copyright (c) 2018 Yuxuan Shui <yshuiv7@gmail.com>
|
// Copyright (c) 2018 Yuxuan Shui <yshuiv7@gmail.com>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
#include <X11/Xutil.h>
|
||||||
#include <xcb/xcb_renderutil.h>
|
#include <xcb/xcb_renderutil.h>
|
||||||
#include <xcb/xfixes.h>
|
#include <xcb/xfixes.h>
|
||||||
#include <xcb/sync.h>
|
#include <xcb/sync.h>
|
||||||
|
|
Loading…
Reference in New Issue