From 380528f59c4a37429f4fa5f8ac7aa3076d0eaa11 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 17 Nov 2013 17:28:10 +0100 Subject: Nativewindow/NEWT: Fix C Return Statement --- src/newt/native/X11RandR11.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/newt/native/X11RandR11.c') diff --git a/src/newt/native/X11RandR11.c b/src/newt/native/X11RandR11.c index 53d01a6fe..38d61289b 100644 --- a/src/newt/native/X11RandR11.c +++ b/src/newt/native/X11RandR11.c @@ -335,7 +335,7 @@ JNIEXPORT jboolean JNICALL Java_jogamp_newt_driver_x11_RandR11_setCurrentScreenM int rot; do { if ( 0 >= XEventsQueued(dpy, QueuedAfterFlush) ) { - return; + return JNI_FALSE; // not done } XNextEvent(dpy, &evt); @@ -366,5 +366,6 @@ JNIEXPORT jboolean JNICALL Java_jogamp_newt_driver_x11_RandR11_setCurrentScreenM XSync(dpy, False); + return done ? JNI_TRUE : JNI_FALSE; } -- cgit v1.2.3