From d578d3c3f1d3d8df4912ec259a186bfe562a448c Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 12 Jun 2011 04:00:21 +0200 Subject: Minor editing (compile script, X11Window.c - cleanups) --- src/newt/native/X11Window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/newt/native/X11Window.c') diff --git a/src/newt/native/X11Window.c b/src/newt/native/X11Window.c index 5414de966..add9fa604 100644 --- a/src/newt/native/X11Window.c +++ b/src/newt/native/X11Window.c @@ -513,9 +513,9 @@ JNIEXPORT void JNICALL Java_jogamp_newt_x11_X11Display_DispatchMessages0 char keyChar = 0; char text[255]; - // num_events = XPending(dpy); // I/O Flush .. - // num_events = XEventsQueued(dpy, QueuedAfterFlush); // I/O Flush only of no already queued events are available - // num_events = XEventsQueued(dpy, QueuedAlready); // no I/O Flush at all, doesn't work on some cards (eg ATI) + // QueuedAlready : No I/O Flush or system call doesn't work on some cards (eg ATI) ?) + // QueuedAfterFlush == XPending(): I/O Flush only if no already queued events are available + // QueuedAfterReading : QueuedAlready + if queue==0, attempt to read more .. if ( 0 >= XEventsQueued(dpy, QueuedAfterFlush) ) { // DBG_PRINT( "X11: DispatchMessages 0x%X - Leave 1\n", dpy); return; -- cgit v1.2.3