diff options
author | Sven Gothel <[email protected]> | 2011-12-01 17:15:13 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-12-01 17:15:13 +0100 |
commit | 035051a686b7652dd14c0a878ebe1fe29f5f11c3 (patch) | |
tree | fff2954c3d84e68b513f0abb43b220b7147274c6 /src | |
parent | 6e7bc19af948bd3a53c5da2dacfafe6f8484d268 (diff) |
Fix Bug 522: NEWT requestFocus() causes a crash if !isNativeValid()
Diffstat (limited to 'src')
-rw-r--r-- | src/newt/classes/jogamp/newt/WindowImpl.java | 2 |
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); } } |