diff options
author | Sven Gothel <[email protected]> | 2015-08-11 01:59:15 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-08-11 01:59:15 +0200 |
commit | 4a9f65b176d618a8816eff6d24e683c56a4d8086 (patch) | |
tree | 079a2e1d82acc9d9f924fcb3429d8309ece23b58 /src/test/com/jogamp | |
parent | fe90427a84bbea6f23f59a533db300b3832a6a21 (diff) |
Bug 1188: Fix regression on X11 setVisible: in-visibility never reached on child windows
It has been experienced that UnmapNotify is not sent for child windows when using IconicState!
Hence the visible:=false event never reaches the Window, causing an error.
This patch only uses IconicState for top-level windows and if requested.
Diffstat (limited to 'src/test/com/jogamp')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/util/NEWTDemoListener.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/util/NEWTDemoListener.java b/src/test/com/jogamp/opengl/test/junit/util/NEWTDemoListener.java index 33479569e..b70beae69 100644 --- a/src/test/com/jogamp/opengl/test/junit/util/NEWTDemoListener.java +++ b/src/test/com/jogamp/opengl/test/junit/util/NEWTDemoListener.java @@ -300,7 +300,7 @@ public class NEWTDemoListener extends MouseAdapter implements KeyListener { printlnState("[set visible post]"); glWindow.setExclusiveContextThread(t); } - if( wasVisible ) { + if( wasVisible && !e.isControlDown() ) { try { Thread.sleep(5000); } catch (final InterruptedException e) { |