aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/native
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-06-12 04:00:21 +0200
committerSven Gothel <[email protected]>2011-06-12 04:00:21 +0200
commitd578d3c3f1d3d8df4912ec259a186bfe562a448c (patch)
tree26696592673ba16d05af962bf5e87e6f4687b2df /src/newt/native
parentbd1c8685d10a82108f959aae5a2f39b5570446be (diff)
Minor editing (compile script, X11Window.c - cleanups)
Diffstat (limited to 'src/newt/native')
-rw-r--r--src/newt/native/X11Window.c6
1 files changed, 3 insertions, 3 deletions
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;