From 6ad73d4156042e2db35562c9a39bf16757237b48 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Mon, 28 Dec 2020 13:40:32 +0700 Subject: [PATCH] init_Xcursor takes Window, not int for window. `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. --- inc/xcursordefs.h | 2 +- src/xcursor.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/xcursordefs.h b/inc/xcursordefs.h index fee24480..c12c4e73 100644 --- a/inc/xcursordefs.h +++ b/inc/xcursordefs.h @@ -4,6 +4,6 @@ #include "devif.h" void Init_XCursor(void); void Set_XCursor(int x, int y); -void init_Xcursor(Display *display, int window); +void init_Xcursor(Display *display, Window window); void set_Xcursor(DspInterface dsp, unsigned char *bitmap, int hotspot_x, int hotspot_y, Cursor *return_cursor, int from_lisp); #endif diff --git a/src/xcursor.c b/src/xcursor.c index a5b95617..f0900e3b 100644 --- a/src/xcursor.c +++ b/src/xcursor.c @@ -149,7 +149,7 @@ void Set_XCursor(int x, int y) /* */ /************************************************************************/ -void init_Xcursor(Display *display, int window) +void init_Xcursor(Display *display, Window window) { TPRINT(("TRACE: init_Xcursor()\n"));