Skip to content

Commit 50a71ff

Browse files
committed
Fix the cursor position
The coordinates (x,y) of the cursor should not be set to the cursor's width (14) and height (20). Instead, the coordinates should be set to (0,0), ensuring that the cursor's hotspot is correctly aligned at the intended position. Signed-off-by: Wei-Hsin Yeh <[email protected]>
1 parent f09d14b commit 50a71ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cursor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ twin_pixmap_t *twin_make_cursor(int *hx, int *hy)
116116
twin_pixmap_create_const(TWIN_ARGB32, 14, 20, 14 * 4, pixels);
117117
if (!cur)
118118
return NULL;
119-
*hx = 14;
120-
*hy = 20;
119+
*hx = 0;
120+
*hy = 0;
121121
return cur;
122122
}

0 commit comments

Comments
 (0)