From 1ea3276bd135119a1f3da67a459f05151402958c Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 18 Dec 2022 19:23:06 +0000 Subject: [PATCH] x: fix missing _checked Signed-off-by: Yuxuan Shui --- src/x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/x.c b/src/x.c index e598345..42bee3f 100644 --- a/src/x.c +++ b/src/x.c @@ -449,9 +449,10 @@ void x_set_picture_clip_region(xcb_connection_t *c, xcb_render_picture_t pict, } void x_clear_picture_clip_region(xcb_connection_t *c, xcb_render_picture_t pict) { + assert(pict != XCB_NONE); xcb_render_change_picture_value_list_t v = {.clipmask = XCB_NONE}; xcb_generic_error_t *e = xcb_request_check( - c, xcb_render_change_picture(c, pict, XCB_RENDER_CP_CLIP_MASK, &v)); + c, xcb_render_change_picture_checked(c, pict, XCB_RENDER_CP_CLIP_MASK, &v)); if (e) { log_error_x_error(e, "failed to clear clip region"); free(e);