aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes/com
diff options
context:
space:
mode:
authorSven Gothel <sgothel@jausoft.com>2010-11-17 13:10:34 +0100
committerSven Gothel <sgothel@jausoft.com>2010-11-17 13:10:34 +0100
commit64aa219406c1aa1d6022fedce7a52c8c19d0e35d (patch)
treed608bc3c2e22aa9109e69c2887a5f5dc848c7f57 /src/newt/classes/com
parent4447e29dfb304a6547295a363cf9de3572c768ea (diff)
NEWT X11Display: ignore null Display handle at dispatch
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; }