diff options
author | Sven Gothel <[email protected]> | 2011-10-10 08:05:26 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-10-10 08:05:26 +0200 |
commit | 600ebcac40ee2d13947701fffc51ea93887db89c (patch) | |
tree | 448cf840e0e7bd11287437129440a4edcc7e0e2d /src/newt/native/X11Window.c | |
parent | 24e0591b6be036d5389cc1eb986ed5e86043ba65 (diff) |
NEWT Pointer Feature: Add Windows impl. ; Fix test (warp action) ; Minor cleanup in X11
Diffstat (limited to 'src/newt/native/X11Window.c')
-rw-r--r-- | src/newt/native/X11Window.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/newt/native/X11Window.c b/src/newt/native/X11Window.c index 2038237cd..c7b271188 100644 --- a/src/newt/native/X11Window.c +++ b/src/newt/native/X11Window.c @@ -1847,7 +1847,7 @@ JNIEXPORT void JNICALL Java_jogamp_newt_driver_x11_X11Window_requestFocus0 * Signature: (JJ)J */ JNIEXPORT jlong JNICALL Java_jogamp_newt_driver_x11_X11Window_getParentWindow0 - (JNIEnv *env, jobject obj, jlong display, jlong window) + (JNIEnv *env, jclass clazz, jlong display, jlong window) { return (jlong) NewtWindows_getParent ((Display *) (intptr_t) display, (Window)window); } @@ -1947,7 +1947,6 @@ JNIEXPORT jboolean JNICALL Java_jogamp_newt_driver_x11_X11Window_confinePointer0 { Display * dpy = (Display *) (intptr_t) display; Window w = (Window)window; - int res; DBG_PRINT( "X11: confinePointer0: %d\n", confine); @@ -1964,18 +1963,16 @@ JNIEXPORT jboolean JNICALL Java_jogamp_newt_driver_x11_X11Window_confinePointer0 /* * Class: Java_jogamp_newt_driver_x11_X11Window * Method: warpPointer0 - * Signature: (JJII)Z + * Signature: (JJII)V */ -JNIEXPORT jboolean JNICALL Java_jogamp_newt_driver_x11_X11Window_warpPointer0 +JNIEXPORT void JNICALL Java_jogamp_newt_driver_x11_X11Window_warpPointer0 (JNIEnv *env, jclass clazz, jlong display, jlong window, jint x, jint y) { Display * dpy = (Display *) (intptr_t) display; Window w = (Window)window; - int res; DBG_PRINT( "X11: warpPointer0: %d/%d\n", x, y); XWarpPointer(dpy, None, w, 0, 0, 0, 0, x, y); - return JNI_TRUE; } |