Jogamp
Bug 1247 - TestGearsNewtAWTWrapper fails AWT recreation case removeNotify -> addNotif...
authorSven Gothel <sgothel@jausoft.com>
Fri, 9 Oct 2015 04:14:00 +0000 (06:14 +0200)
committerSven Gothel <sgothel@jausoft.com>
Fri, 9 Oct 2015 04:14:00 +0000 (06:14 +0200)
commitc1594efa78951f187a75ec0b9a85cf64fba418d4
tree613cdfa2d631bf0b8430422d26c3387e15f49437
parent78bb597a06180c968ff5a10a7e3f44bd058965d6
Bug 1247 - TestGearsNewtAWTWrapper fails AWT recreation case removeNotify -> addNotify, e.g. by moving to other monitor

AWTCanvas removeNotify didn't cause 'local' destruction of the NEWT window,
allowing a 'recreate' w/ subsequent addNotify.

This case has been hacked-into NEWT.AWT.WindowDriver + AWTCanvas:
  - suppression of window destroy events
  - keeping fields/states intact in NEWT.AWT.WindowDriver
  - propagating signals appropriately

Note: This is barely a working hack and not a fine piece of software :)

This AWT backend driver exists only due to historical reasons.

This hack simply proves that JAWTWindow works properly.
make/scripts/tests.sh
src/newt/classes/jogamp/newt/driver/awt/AWTCanvas.java
src/newt/classes/jogamp/newt/driver/awt/WindowDriver.java
http://JogAmp.org git info: FAQ, tutorial and man pages.