changeset 5377:f6e8114c83d8

8001161: mac: EmbeddedFrame doesn't become active window Reviewed-by: ant
author dcherepanov
date Sat, 29 Dec 2012 17:43:32 +0400
parents 251f7015007e
children a69393292482
files src/macosx/classes/sun/lwawt/macosx/CEmbeddedFrame.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/classes/sun/lwawt/macosx/CEmbeddedFrame.java	Wed Jun 26 22:04:37 2013 -0500
+++ b/src/macosx/classes/sun/lwawt/macosx/CEmbeddedFrame.java	Sat Dec 29 17:43:32 2012 +0400
@@ -113,7 +113,9 @@
 
     public void handleWindowFocusEvent(boolean parentWindowActive) {
         this.parentWindowActive = parentWindowActive;
-        if (focused) {
+        // ignore focus "lost" native request as it may mistakenly
+        // deactivate active window (see 8001161)
+        if (focused && parentWindowActive) {
             responder.handleWindowFocusEvent(parentWindowActive);
         }
     }