summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/libgtk-java/files
diff options
context:
space:
mode:
Diffstat (limited to 'x11-toolkits/libgtk-java/files')
-rw-r--r--x11-toolkits/libgtk-java/files/patch-gdk_src_jni_org_gnu_gdk_Display.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/x11-toolkits/libgtk-java/files/patch-gdk_src_jni_org_gnu_gdk_Display.c b/x11-toolkits/libgtk-java/files/patch-gdk_src_jni_org_gnu_gdk_Display.c
new file mode 100644
index 000000000..d87d1195d
--- /dev/null
+++ b/x11-toolkits/libgtk-java/files/patch-gdk_src_jni_org_gnu_gdk_Display.c
@@ -0,0 +1,12 @@
+--- gdk/src/jni/org_gnu_gdk_Display.c.orig Sat Feb 7 20:32:44 2004
++++ gdk/src/jni/org_gnu_gdk_Display.c Sat Feb 7 20:39:35 2004
+@@ -272,7 +272,8 @@
+ JNIEXPORT jint JNICALL Java_org_gnu_gdk_Display_gdk_1display_1get_1window_1at_1pointer
+ (JNIEnv *env, jclass cls, jint display, jint x, jint y)
+ {
+- return (jint)gdk_display_get_window_at_pointer((GdkDisplay*)display, &(gint)x, &(gint)y);
++ gint gy = (gint)y, gx = (gint)x;
++ return (jint)gdk_display_get_window_at_pointer((GdkDisplay*)display, &gx, &gy);
+ }
+
+ /*