[Xcb-commit] xcb/util-cursor: cursor

Michael Stapelberg stapelberg at kemper.freedesktop.org
Tue Aug 20 23:07:01 PDT 2013


 cursor/load_cursor.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 72d3e9f999c958b6b74f868fcb3f64117a57ac32
Author: Michael Stapelberg <michael at stapelberg.de>
Date:   Wed Aug 21 08:05:33 2013 +0200

    Bugfix: Use xhot/yhot, don’t hardcode the value (Thanks tenkainen)
    
    In early development, I hardcoded these to make debugging easier, but
    then forgot to use the actual variables :).

diff --git a/cursor/load_cursor.c b/cursor/load_cursor.c
index 50d1e0f..43cd7a5 100644
--- a/cursor/load_cursor.c
+++ b/cursor/load_cursor.c
@@ -253,7 +253,7 @@ xcb_cursor_t xcb_cursor_load_cursor(xcb_cursor_context_t *c, const char *name) {
         elements[n].cursor = xcb_generate_id(c->conn);
         elements[n].delay = i->delay;
 
-        xcb_render_create_cursor(c->conn, elements[n].cursor, pic, 11, 11);
+        xcb_render_create_cursor(c->conn, elements[n].cursor, pic, i->xhot, i->yhot);
 
         xcb_render_free_picture(c->conn, pic);
         xcb_image_destroy(img);


More information about the xcb-commit mailing list