summaryrefslogtreecommitdiffstats
path: root/src/newt/classes/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-01-16 12:17:35 +0100
committerSven Gothel <[email protected]>2020-01-16 12:17:35 +0100
commita1bc7ebb1b66f445a5134e4ed4b6ff6118291c51 (patch)
tree4f5651c197518b20e70c4c2e4bafa27c52a42c33 /src/newt/classes/com/jogamp
parentf63b94cccc71cf154a7a6d3359ceface3a683229 (diff)
NEWT: Enhance FullScreen.run DEBUG output a bit; NEWTDemoListener ignore input if not visible.
Diffstat (limited to 'src/newt/classes/com/jogamp')
-rw-r--r--src/newt/classes/com/jogamp/newt/opengl/util/NEWTDemoListener.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newt/classes/com/jogamp/newt/opengl/util/NEWTDemoListener.java b/src/newt/classes/com/jogamp/newt/opengl/util/NEWTDemoListener.java
index ee6b59fc0..7507e772f 100644
--- a/src/newt/classes/com/jogamp/newt/opengl/util/NEWTDemoListener.java
+++ b/src/newt/classes/com/jogamp/newt/opengl/util/NEWTDemoListener.java
@@ -117,6 +117,10 @@ public class NEWTDemoListener extends WindowAdapter implements KeyListener, Mous
if( e.isAutoRepeat() || e.isConsumed() ) {
return;
}
+ if( !glWindow.isVisible() ) {
+ printlnState("[key "+e+" but invisible]");
+ return;
+ }
final int keySymbol = e.getKeySymbol();
switch(keySymbol) {
case KeyEvent.VK_SPACE: