From 90077a910e62ec55bc1e5a98f5946754c9c5f8bd Mon Sep 17 00:00:00 2001 From: marha Date: Sat, 21 Dec 2013 14:53:11 +0100 Subject: Solved 64-bit run-time problems --- libXt/src/EventUtil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libXt/src') diff --git a/libXt/src/EventUtil.c b/libXt/src/EventUtil.c index 91ad31fae..3127efc84 100644 --- a/libXt/src/EventUtil.c +++ b/libXt/src/EventUtil.c @@ -111,7 +111,7 @@ XtPerWidgetInput _XtGetPerWidgetInput( perWidgetInputContext = XUniqueContext(); if (XFindContext(dpy, - (Window)widget, + (Window)(((intptr_t)widget)&0xffffffff), perWidgetInputContext, (XPointer *)&pwi) && create) @@ -134,7 +134,7 @@ XtPerWidgetInput _XtGetPerWidgetInput( _XtDestroyServerGrabs, (XtPointer)pwi); (void) XSaveContext(dpy, - (Window)widget, + (Window)(((intptr_t)widget)&0xffffffff), perWidgetInputContext, (char *) pwi); } -- cgit v1.2.3