From bd9b90d2853a4ab7e3deb9491e516fc156836c01 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 4 Mar 2009 18:09:04 +0100 Subject: [PATCH] Fix datatype for cursor --- include/xcb.h | 2 +- src/xcb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/xcb.h b/include/xcb.h index be94c0c1..5d140a09 100644 --- a/include/xcb.h +++ b/include/xcb.h @@ -36,7 +36,7 @@ enum { _NET_SUPPORTED = 0, i3Font *load_font(xcb_connection_t *conn, const char *pattern); uint32_t get_colorpixel(xcb_connection_t *conn, Client *client, xcb_window_t window, char *hex); -xcb_window_t create_window(xcb_connection_t *conn, Rect r, uint16_t window_class, uint16_t cursor, +xcb_window_t create_window(xcb_connection_t *conn, Rect r, uint16_t window_class, int cursor, uint32_t mask, uint32_t *values); void xcb_change_gc_single(xcb_connection_t *conn, xcb_gcontext_t gc, uint32_t mask, uint32_t value); void xcb_draw_line(xcb_connection_t *conn, xcb_drawable_t drawable, xcb_gcontext_t gc, diff --git a/src/xcb.c b/src/xcb.c index ca13bc6f..2f797b1e 100644 --- a/src/xcb.c +++ b/src/xcb.c @@ -123,7 +123,7 @@ uint32_t get_colorpixel(xcb_connection_t *conn, Client *client, xcb_window_t win * for errors. * */ -xcb_window_t create_window(xcb_connection_t *conn, Rect dims, uint16_t window_class, uint16_t cursor, +xcb_window_t create_window(xcb_connection_t *conn, Rect dims, uint16_t window_class, int cursor, uint32_t mask, uint32_t *values) { xcb_window_t root = xcb_setup_roots_iterator(xcb_get_setup(conn)).data->root; xcb_window_t result = xcb_generate_id(conn);