aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/newt/X11Window.c
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-06-25 09:38:10 +0000
committerSven Gothel <[email protected]>2008-06-25 09:38:10 +0000
commit6e9438e631b9f75340c1f7e7cf06b38a358861c4 (patch)
tree9500137a98e187f5e1c09fdf037043613e333cbb /src/native/newt/X11Window.c
parent16f1e768f7a9162ac50cefc811a1fce019831bdf (diff)
GLES1 NEWT X11 - RedSquare - working
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1683 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/native/newt/X11Window.c')
-rwxr-xr-xsrc/native/newt/X11Window.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/native/newt/X11Window.c b/src/native/newt/X11Window.c
index 3f08b5d49..1640a36fc 100755
--- a/src/native/newt/X11Window.c
+++ b/src/native/newt/X11Window.c
@@ -153,7 +153,7 @@ JNIEXPORT jboolean JNICALL Java_com_sun_javafx_newt_x11_X11Window_initIDs
positionChangedID = (*env)->GetMethodID(env, clazz, "positionChanged", "(II)V");
windowClosedID = (*env)->GetMethodID(env, clazz, "windowClosed", "()V");
windowDestroyedID = (*env)->GetMethodID(env, clazz, "windowDestroyed", "()V");
- windowCreatedID = (*env)->GetMethodID(env, clazz, "windowCreated", "(IJ)V");
+ windowCreatedID = (*env)->GetMethodID(env, clazz, "windowCreated", "(JJ)V");
sendMouseEventID = (*env)->GetMethodID(env, clazz, "sendMouseEvent", "(IIIII)V");
sendKeyEventID = (*env)->GetMethodID(env, clazz, "sendKeyEvent", "(IIIC)V");
if (sizeChangedID == NULL ||
@@ -216,7 +216,7 @@ JNIEXPORT jlong JNICALL Java_com_sun_javafx_newt_x11_X11Window_CreateWindow
if(pVisualQuery!=NULL) {
visual = pVisualQuery->visual;
depth = pVisualQuery->depth;
- visualID = pVisualQuery->visualid;
+ visualID = (jlong)pVisualQuery->visualid;
XFree(pVisualQuery);
pVisualQuery=NULL;
}
@@ -229,7 +229,7 @@ JNIEXPORT jlong JNICALL Java_com_sun_javafx_newt_x11_X11Window_CreateWindow
// try default ..
visual = XDefaultVisualOfScreen(scrn);
if(visual!=NULL) {
- visualID = visual->visualid;
+ visualID = (jlong)visual->visualid;
// try given VisualID on screen
memset(&visualTemplate, 0, sizeof(XVisualInfo));
visualTemplate.screen = scrn_idx;
@@ -239,7 +239,7 @@ JNIEXPORT jlong JNICALL Java_com_sun_javafx_newt_x11_X11Window_CreateWindow
if(pVisualQuery!=NULL) {
visual = pVisualQuery->visual;
depth = pVisualQuery->depth;
- visualID = pVisualQuery->visualid;
+ visualID = (jlong)pVisualQuery->visualid;
XFree(pVisualQuery);
pVisualQuery=NULL;
} else {
@@ -362,13 +362,14 @@ JNIEXPORT void JNICALL Java_com_sun_javafx_newt_x11_X11Window_DispatchMessages
XSelectInput(dpy, w, xevent_mask_win|xevent_mask_key|xevent_mask_ptr);
+ /**
if(0!=xevent_mask_ptr) {
XGrabPointer(dpy, w, True, xevent_mask_ptr,
GrabModeAsync, GrabModeAsync, w, None, CurrentTime);
}
if(0!=xevent_mask_key) {
XGrabKeyboard(dpy, w, True, GrabModeAsync, GrabModeAsync, CurrentTime);
- }
+ } */
}