8001161: mac: EmbeddedFrame doesn't become active window
authordcherepanov
Thu, 27 Dec 2012 16:08:30 +0400
changeset 14892 d1c51f8ada7e
parent 14891 9d205107de0b
child 14893 2f71093185ad
8001161: mac: EmbeddedFrame doesn't become active window Reviewed-by: ant
jdk/src/macosx/classes/sun/lwawt/macosx/CEmbeddedFrame.java
--- a/jdk/src/macosx/classes/sun/lwawt/macosx/CEmbeddedFrame.java	Fri Dec 21 19:11:50 2012 +0400
+++ b/jdk/src/macosx/classes/sun/lwawt/macosx/CEmbeddedFrame.java	Thu Dec 27 16:08:30 2012 +0400
@@ -119,7 +119,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, null);
         }
     }