From: Michael Stapelberg Date: Wed, 4 Mar 2009 17:09:04 +0000 (+0100) Subject: Fix datatype for cursor X-Git-Tag: 3.a~106 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bd9b90d2853a4ab7e3deb9491e516fc156836c01;p=i3%2Fi3 Fix datatype for cursor --- 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);