Fix building with ENABLE_XRESCHECK=1

This commit is contained in:
Yuxuan Shui 2018-09-30 20:43:34 +01:00
parent 18022181ee
commit ddab20176b
1 changed files with 4 additions and 5 deletions

View File

@ -2,7 +2,7 @@
#define COMPTON_XRESCHECK_H #define COMPTON_XRESCHECK_H
#include "common.h" #include "common.h"
#include <uthash.h> #include "uthash.h"
typedef struct { typedef struct {
XID xid; XID xid;
@ -45,11 +45,10 @@ xcb_create_pixmap_(xcb_connection_t *c, uint8_t depth, xcb_pixmap_t pixmap,
#define xcb_create_pixmap(c, depth, pixmap, drawable, width, height) \ #define xcb_create_pixmap(c, depth, pixmap, drawable, width, height) \
xcb_create_pixmap_(c, depth, pixmap, drawable, width, height, M_POS_DATA) xcb_create_pixmap_(c, depth, pixmap, drawable, width, height, M_POS_DATA)
static inline xcb_pixmap_t static inline xcb_void_cookie_t
xcb_composite_name_window_pixmap_(xcb_connection_t *c, xcb_window_t window, xcb_pixmap_t pixmap, M_POS_DATA_PARAMS) { xcb_composite_name_window_pixmap_(xcb_connection_t *c, xcb_window_t window, xcb_pixmap_t pixmap, M_POS_DATA_PARAMS) {
xcb_pixmap_t ret = xcb_composite_name_window_pixmap(c, window, pixmap); xcb_void_cookie_t ret = xcb_composite_name_window_pixmap(c, window, pixmap);
if (ret) xrc_add_xid_(pixmap, "PixmapC", M_POS_DATA_PASSTHROUGH);
xrc_add_xid_(ret, "PixmapC", M_POS_DATA_PASSTHROUGH);
return ret; return ret;
} }