]> git.sur5r.net Git - i3/i3/commitdiff
Fix datatype for cursor
authorMichael Stapelberg <michael+x200@stapelberg.de>
Wed, 4 Mar 2009 17:09:04 +0000 (18:09 +0100)
committerMichael Stapelberg <michael+x200@stapelberg.de>
Wed, 4 Mar 2009 17:09:04 +0000 (18:09 +0100)
include/xcb.h
src/xcb.c

index be94c0c1f90083d56f31d5cb331f344c06c28415..5d140a0998cdf5bd299b6aa738bf5a9469ace5a4 100644 (file)
@@ -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,
index ca13bc6f8cebd0d7b7f544e87a29457e367dc0e7..2f797b1e02a1418ab158b30be3c4df7af499ca5a 100644 (file)
--- 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);