aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/newt/classes/com')
-rw-r--r--src/newt/classes/com/jogamp/newt/impl/x11/X11Display.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newt/classes/com/jogamp/newt/impl/x11/X11Display.java b/src/newt/classes/com/jogamp/newt/impl/x11/X11Display.java
index ab1e271a4..1aaffacb5 100644
--- a/src/newt/classes/com/jogamp/newt/impl/x11/X11Display.java
+++ b/src/newt/classes/com/jogamp/newt/impl/x11/X11Display.java
@@ -86,10 +86,10 @@ public class X11Display extends DisplayImpl {
}
protected void dispatchMessagesNative() {
- if(0==getHandle()) {
- throw new RuntimeException("display handle null");
+ long dpy = getHandle();
+ if(0!=dpy) {
+ DispatchMessages0(dpy, javaObjectAtom, windowDeleteAtom);
}
- DispatchMessages0(getHandle(), javaObjectAtom, windowDeleteAtom);
}
protected long getJavaObjectAtom() { return javaObjectAtom; }