Jogamp
X11Util.openDisplay: DEBUG: Show reusable and pending display count
authorSven Gothel <sgothel@jausoft.com>
Sun, 15 Nov 2015 04:18:42 +0000 (05:18 +0100)
committerSven Gothel <sgothel@jausoft.com>
Sun, 15 Nov 2015 04:18:42 +0000 (05:18 +0100)
src/nativewindow/classes/jogamp/nativewindow/x11/X11Util.java

index e59ff2e..6af5467 100644 (file)
@@ -463,10 +463,12 @@ public class X11Util implements ToolkitProperties {
             if(markAllDisplaysUnclosable) {
                 namedDpy.setUncloseable(true);
             }
-        }
-        if(DEBUG) {
-            System.err.println("X11Util.Display: openDisplay [reuse "+reused+"] "+namedDpy+". Thread "+Thread.currentThread().getName());
-            // Thread.dumpStack();
+            if(DEBUG) {
+                System.err.println("X11Util.Display: openDisplay [reuse "+reused+"] "+namedDpy+
+                        ". Open[reuseable "+reusableDisplayList.size()+", pending "+pendingDisplayList.size()+
+                        "]. Thread "+Thread.currentThread().getName());
+                // Thread.dumpStack();
+            }
         }
         return namedDpy.getHandle();
     }
http://JogAmp.org git info: FAQ, tutorial and man pages.