aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-09-28 09:33:52 +0300
committerSven Gothel <[email protected]>2010-09-28 09:33:52 +0300
commitfab1ce7a07467065842e75c9d5c60c6bc7e305e0 (patch)
tree9999dc4cf3004f4a3ff066a68913b26694164b3e /src/newt/classes/com
parentb32c65e2322bf046250b090a4c10c47a55f45c29 (diff)
NEWT: Newt/AWT Rollback AWTParentWindowAdapter changes
Diffstat (limited to 'src/newt/classes/com')
-rw-r--r--src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java5
-rw-r--r--src/newt/classes/com/jogamp/newt/event/awt/AWTParentWindowAdapter.java14
2 files changed, 2 insertions, 17 deletions
diff --git a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java
index d378e8ed0..097a2c442 100644
--- a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java
+++ b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java
@@ -51,7 +51,7 @@ public class NewtCanvasAWT extends java.awt.Canvas {
NativeWindow parent = null;
Window newtChild = null;
- AWTParentWindowAdapter awtAdapter = null;
+ AWTAdapter awtAdapter = null;
/**
* Instantiates a NewtCanvas without a NEWT child.<br>
@@ -89,7 +89,6 @@ public class NewtCanvasAWT extends java.awt.Canvas {
System.err.println("FocusActionImpl.run() "+Display.getThreadName());
}
NewtCanvasAWT.this.requestFocusAWTParent();
- // awtAdapter.setForcePermanentFocusLossOneShot();
KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager();
kfm.clearGlobalFocusOwner();
}
@@ -127,7 +126,7 @@ public class NewtCanvasAWT extends java.awt.Canvas {
awtAdapter=null;
}
if(attach && null!=newtChild) {
- awtAdapter = (AWTParentWindowAdapter) new AWTParentWindowAdapter(newtChild).addTo(this);
+ awtAdapter = new AWTParentWindowAdapter(newtChild).addTo(this);
}
}
diff --git a/src/newt/classes/com/jogamp/newt/event/awt/AWTParentWindowAdapter.java b/src/newt/classes/com/jogamp/newt/event/awt/AWTParentWindowAdapter.java
index e86d365bc..ba5581def 100644
--- a/src/newt/classes/com/jogamp/newt/event/awt/AWTParentWindowAdapter.java
+++ b/src/newt/classes/com/jogamp/newt/event/awt/AWTParentWindowAdapter.java
@@ -52,12 +52,6 @@ public class AWTParentWindowAdapter
return super.removeFrom(awtComponent);
}
- boolean forcePermanentFocusLossOneShot = false;
-
- public void setForcePermanentFocusLossOneShot() {
- forcePermanentFocusLossOneShot = true;
- }
-
public void focusGained(java.awt.event.FocusEvent e) {
if(DEBUG_IMPLEMENTATION) {
System.err.println("AWT: focusGained: "+ e);
@@ -68,14 +62,6 @@ public class AWTParentWindowAdapter
if(DEBUG_IMPLEMENTATION) {
System.err.println("AWT: focusLost: "+ e);
}
- if(forcePermanentFocusLossOneShot) {
- forcePermanentFocusLossOneShot = false;
- if(DEBUG_IMPLEMENTATION) {
- System.err.println("AWT: focusLost: - clearGlobalFocusOwner -");
- }
- KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager();
- kfm.clearGlobalFocusOwner();
- }
}
public void componentResized(java.awt.event.ComponentEvent e) {