From 64aa219406c1aa1d6022fedce7a52c8c19d0e35d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 17 Nov 2010 13:10:34 +0100 Subject: NEWT X11Display: ignore null Display handle at dispatch --- src/newt/classes/com/jogamp/newt/impl/x11/X11Display.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/newt') 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; } -- cgit v1.2.3