summaryrefslogtreecommitdiffstats
path: root/src/newt/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-12-01 17:15:13 +0100
committerSven Gothel <[email protected]>2011-12-01 17:15:13 +0100
commit035051a686b7652dd14c0a878ebe1fe29f5f11c3 (patch)
treefff2954c3d84e68b513f0abb43b220b7147274c6 /src/newt/classes
parent6e7bc19af948bd3a53c5da2dacfafe6f8484d268 (diff)
Fix Bug 522: NEWT requestFocus() causes a crash if !isNativeValid()
Diffstat (limited to 'src/newt/classes')
-rw-r--r--src/newt/classes/jogamp/newt/WindowImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java
index 83688ef3e..e496ae4fb 100644
--- a/src/newt/classes/jogamp/newt/WindowImpl.java
+++ b/src/newt/classes/jogamp/newt/WindowImpl.java
@@ -1576,7 +1576,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer
}
public void requestFocus(boolean wait) {
- if(!focusAction()) {
+ if(isNativeValid() && !focusAction()) {
runOnEDTIfAvail(wait, requestFocusAction);
}
}