Skip to content

Commit 023cf60

Browse files
init_Xcursor takes Window, not int for window. (#137)
`Window` is an X11 typedef for `unsigned long` (via `XID`). We should pass it as that, not an `int`, to avoid 64 bit conversion issues.
1 parent 0880b2f commit 023cf60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

inc/xcursordefs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
#include "devif.h"
55
void Init_XCursor(void);
66
void Set_XCursor(int x, int y);
7-
void init_Xcursor(Display *display, int window);
7+
void init_Xcursor(Display *display, Window window);
88
void set_Xcursor(DspInterface dsp, unsigned char *bitmap, int hotspot_x, int hotspot_y, Cursor *return_cursor, int from_lisp);
99
#endif

src/xcursor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void Set_XCursor(int x, int y)
149149
/* */
150150
/************************************************************************/
151151

152-
void init_Xcursor(Display *display, int window)
152+
void init_Xcursor(Display *display, Window window)
153153
{
154154
TPRINT(("TRACE: init_Xcursor()\n"));
155155

0 commit comments

Comments
 (0)