aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-02-28 05:19:44 +0100
committerSven Gothel <[email protected]>2011-02-28 05:19:44 +0100
commit3ee26cd01789d0169c5225b3a4e5229e4a1c6676 (patch)
tree8f250401d168ead0cb635e24952ab3b11c46983e
parente5f0ee1e8969b9259f31b88f9ddd7165ab8ca5ae (diff)
X11Util DisplayName: Respect DEFAULT_CONNECTION string
-rw-r--r--src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java b/src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java
index 052a9934e..26da46319 100644
--- a/src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java
+++ b/src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java
@@ -361,11 +361,11 @@ public class X11Util {
* @return If name is null, it returns the previous queried NULL display name,
* otherwise the name. */
public static String validateDisplayName(String name) {
- return ( null == name ) ? getNullDisplayName() : name ;
+ return ( null == name || AbstractGraphicsDevice.DEFAULT_CONNECTION.equals(name) ) ? getNullDisplayName() : name ;
}
public static String validateDisplayName(String name, long handle) {
- if(null==name && 0!=handle) {
+ if( ( null==name || AbstractGraphicsDevice.DEFAULT_CONNECTION.equals(name) ) && 0!=handle) {
name = XDisplayString(handle);
}
return validateDisplayName(name);