aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2013-11-18 10:55:30 -0800
committerHarvey Harrison <[email protected]>2013-11-18 10:55:30 -0800
commit0a9d16f057727652220a5983b65f22f427df6a22 (patch)
treeadfecd3ceaed0d15606d6ae66727fde370337bba
parent417675219de9fb5fceca5771812366ae8768b658 (diff)
jogl: simplify conditional that repeats test for isOnScreen
if (isOnscreen) else if (!isOnScreen) change to if (isOnscreen) else Signed-off-by: Harvey Harrison <[email protected]>
-rw-r--r--src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java
index 35f4fca73..e5c76f25d 100644
--- a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java
+++ b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java
@@ -213,7 +213,8 @@ public class NewtCanvasAWT extends java.awt.Canvas implements WindowClosingProto
if( isOnscreen ) {
// Remove the AWT focus in favor of the native NEWT focus
KeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner();
- } else if( !isOnscreen ) {
+ }
+ else {
// In offscreen mode we require the focus!
if( !hasFocus() ) {
// Newt-EDT -> AWT-EDT may freeze Window's native peer requestFocus.