Remove usage of Xlib from x.c
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
2e26c511c4
commit
bc0382d962
10
src/x.c
10
src/x.c
|
@ -2,8 +2,6 @@
|
||||||
// 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 <X11/Xlib.h>
|
|
||||||
#include <xcb/xcb_renderutil.h>
|
#include <xcb/xcb_renderutil.h>
|
||||||
#include <xcb/xfixes.h>
|
#include <xcb/xfixes.h>
|
||||||
#include <pixman.h>
|
#include <pixman.h>
|
||||||
|
@ -371,12 +369,8 @@ x_print_error(unsigned long serial, uint8_t major, uint8_t minor, uint8_t error_
|
||||||
|
|
||||||
#undef CASESTRRET2
|
#undef CASESTRRET2
|
||||||
|
|
||||||
{
|
log_debug("X error %d %s request %d minor %d serial %lu",
|
||||||
char buf[BUF_LEN] = "";
|
error_code, name, major, minor, serial);
|
||||||
XGetErrorText(ps->dpy, error_code, buf, BUF_LEN);
|
|
||||||
log_debug("X error %d %s request %d minor %d serial %lu: \"%s\"",
|
|
||||||
error_code, name, major, minor, serial, buf);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue