aboutsummaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-09-28 18:55:09 +0200
committerSven Gothel <[email protected]>2012-09-28 18:55:09 +0200
commit30d6d5e3c1ee7132c2b3cc722839528882e03053 (patch)
treeca88719e111831822a9d3284e85fb64b89cf74db /src/nativewindow/classes
parent52b499095dbe18d6a8f4383093e840480d50e930 (diff)
X11 NativeWindow: Fix Error and IOError handler, i.e. NPE checks and no JVM dependency (signal is async); X11Util: XSync w/ discard reusable Display when queue-in.
Diffstat (limited to 'src/nativewindow/classes')
-rw-r--r--src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java b/src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java
index 60f54eb3c..67508bf87 100644
--- a/src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java
+++ b/src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java
@@ -425,6 +425,7 @@ public class X11Util {
pendingDisplayList.remove(namedDpy);
} else {
// for reuse
+ X11Lib.XSync(namedDpy.getHandle(), true); // flush output buffer and discard all events
reusableDisplayList.add(namedDpy);
}