summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2013-08-21 08:05:33 +0200
committerMichael Stapelberg <michael@stapelberg.de>2013-08-21 08:05:33 +0200
commit72d3e9f999c958b6b74f868fcb3f64117a57ac32 (patch)
tree9ac7410bb6c615fbb46ac5a82a979192fea4ce6d
parent9a30b01e383fd14cad4a525e3c21ff5c20ba605e (diff)
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 :).
-rw-r--r--cursor/load_cursor.c2
1 files changed, 1 insertions, 1 deletions
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);