From 4a9f65b176d618a8816eff6d24e683c56a4d8086 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 11 Aug 2015 01:59:15 +0200 Subject: 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. --- src/test/com/jogamp/opengl/test/junit/util/NEWTDemoListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/com/jogamp/opengl') 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) { -- cgit v1.2.3