diff options
Diffstat (limited to 'src/newt/classes/com')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java | 3 |
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. |