Jogamp
NEWT X11 Fix (mainly ATI and multithreading)
authorSven Gothel <sgothel@jausoft.com>
Tue, 13 Apr 2010 18:48:50 +0000 (20:48 +0200)
committerSven Gothel <sgothel@jausoft.com>
Tue, 13 Apr 2010 18:48:50 +0000 (20:48 +0200)
commit1c1053c6a8b669c067ae1316b9770871e213ea05
treeaf4ed7ea0b41ea6626cc0ad2208b495733b4056e
parent98de1d96e77a1c1aad237a8e5c6c63e21bcb5fc2
NEWT X11 Fix (mainly ATI and multithreading)
    - EventDispatchThread -> EDTUtil
      Since the name leads to the assumptions that an instance is the EDT.
      EDTUtil manages the EDT within.

    - EDTUtil, no more reference to Display, but use a Runnable for the
      pumpMessage()

    - Window.destroy() check if already done

    - X11Window: Added XErrorHandler to catch BadWindow and BadAtom
      while dispatching events - it is possible that the resource
      is already freed. Also added an XIOErrorHandler to identify
      the fatal Display* inaccessibility.

Tests:
    - New junit/com/jogamp/test/junit/newt/TestWindows01NEWT.java
      Testing creation/destruction and double destruction (error case)

    - Fix: src/junit/com/jogamp/test/junit/jogl/offscreen/TestOffscreen01NEWT.java
      Properly holding all NEWT references ..

Misc:
    - Reduced redundant NEWT 'toString()' output (*Capabilities, ..)
    -
src/junit/com/jogamp/test/junit/jogl/offscreen/TestOffscreen01NEWT.java
src/junit/com/jogamp/test/junit/jogl/offscreen/WindowUtilNEWT.java
src/junit/com/jogamp/test/junit/newt/TestWindows01NEWT.java [new file with mode: 0755]
src/newt/classes/com/jogamp/newt/Display.java
src/newt/classes/com/jogamp/newt/Window.java
src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
src/newt/classes/com/jogamp/newt/util/EDTUtil.java [moved from src/newt/classes/com/jogamp/newt/util/EventDispatchThread.java with 72% similarity]
src/newt/native/X11Window.c
http://JogAmp.org git info: FAQ, tutorial and man pages.