diff options
author | Denis Fokin <denis.fokin@jetbrains.com> | 2018-04-19 16:43:37 +0300 |
---|---|---|
committer | Denis Fokin <denis.fokin@jetbrains.com> | 2018-04-26 15:26:05 +0300 |
commit | 86699774b8eefa2198d53591bf43bbdc65564091 (patch) | |
tree | 2bdb326814b03d48090a29dd742a5d537914d926 | |
parent | 5e2461693ba38ce750ff2a5d9c0a42f216b70638 (diff) | |
download | jdk8u_jdk-86699774b8eefa2198d53591bf43bbdc65564091.tar.gz |
JRE-692 java/awt/Focus/ClearLwQueueBreakTest/ClearLwQueueBreakTest.java: target component didn't get focus!jb8u152-b1136.36
(cherry picked from commit 5a3fd0b)
-rw-r--r-- | src/solaris/classes/sun/awt/X11/XComponentPeer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/solaris/classes/sun/awt/X11/XComponentPeer.java b/src/solaris/classes/sun/awt/X11/XComponentPeer.java index f7409b23d2..b57f1bd170 100644 --- a/src/solaris/classes/sun/awt/X11/XComponentPeer.java +++ b/src/solaris/classes/sun/awt/X11/XComponentPeer.java @@ -335,7 +335,7 @@ public class XComponentPeer extends XWindow implements ComponentPeer, DropTarget } // If parent window can be made focused and has been made focused(synchronously) // then we can proceed with children, otherwise we retreat. - if (!res) { + if (!(res && parentWindow.isFocused())) { return rejectFocusRequestHelper("Waiting for asynchronous processing of the request"); } return XKeyboardFocusManagerPeer.deliverFocus(lightweightChild, |