From 177d0da1a9a8e031f15efa9e89465f8ed97f25e5 Mon Sep 17 00:00:00 2001 From: Harvey Harrison Date: Mon, 18 Nov 2013 11:28:40 -0800 Subject: jogl: push other call to clearGlobalFocus to the AWT EDT Follow-on to commit: d544c839f6df10f20977c786a446833f3aa7ef13 (jogl: do the clearGlobalFocusOwner() call on the AWT EDT in NewtCanvasAWT) Likely this won't hurt anything. Signed-off-by: Harvey Harrison --- src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newt/classes/com/jogamp') diff --git a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java index e1a819e77..fd8d44a74 100644 --- a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java +++ b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java @@ -346,7 +346,7 @@ public class NewtCanvasAWT extends java.awt.Canvas implements WindowClosingProto if(null!=newtChild) { newtChild.setFocusAction(null); if(isOnscreen) { - KeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner(); + AWTEDTExecutor.singleton.invoke(false, awtClearGlobalFocusOwner); } newtChild.requestFocus(); newtChild.setFocusAction(focusAction); -- cgit v1.2.3