summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Gusarov <dottedmag@dottedmag.net>2009-04-19 20:01:00 +0700
committerArnaud Fontaine <arnau@debian.org>2010-11-14 19:51:10 +0900
commit296a3d0a11f0ed609fe5c5c9036d353fe9e715cd (patch)
treecfbf7b303bcf5925fd21f7815522999b3a2d455f
parent6b36dc016a6d51df63324079ef3178599e8f802b (diff)
Add xcb_aux_change_window_attributes_checked
There is xcb_aux_change_window_attributes, add the matching checked function. Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Signed-off-by: Julien Danjou <julien@danjou.info>
-rw-r--r--aux/xcb_aux.c11
-rw-r--r--aux/xcb_aux.h6
2 files changed, 17 insertions, 0 deletions
diff --git a/aux/xcb_aux.c b/aux/xcb_aux.c
index 1adc02a..c810398 100644
--- a/aux/xcb_aux.c
+++ b/aux/xcb_aux.c
@@ -208,6 +208,17 @@ xcb_aux_create_window_checked (xcb_connection_t *c,
}
xcb_void_cookie_t
+xcb_aux_change_window_attributes_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t mask,
+ const xcb_params_cw_t *params)
+{
+ uint32_t value_list[16];
+ pack_list(mask, (const uint32_t *)params, value_list);
+ return xcb_change_window_attributes_checked( c, window, mask, value_list );
+}
+
+xcb_void_cookie_t
xcb_aux_change_window_attributes (xcb_connection_t *c,
xcb_window_t window,
uint32_t mask,
diff --git a/aux/xcb_aux.h b/aux/xcb_aux.h
index 011736e..d49d438 100644
--- a/aux/xcb_aux.h
+++ b/aux/xcb_aux.h
@@ -102,6 +102,12 @@ xcb_aux_change_window_attributes (xcb_connection_t *c,
uint32_t mask,
const xcb_params_cw_t *params);
+xcb_void_cookie_t
+xcb_aux_change_window_attributes_checked (xcb_connection_t *c,
+ xcb_window_t window,
+ uint32_t mask,
+ const xcb_params_cw_t *params);
+
typedef struct {
int32_t x;
int32_t y;