Mercurial > hg > openjdk > jigsaw > jdk
changeset 7268:dcdf8cd4b09e
7147075: JTextField doesn't get focus or loses focus forever
Reviewed-by: anthony
author | ant |
---|---|
date | Mon, 15 Apr 2013 13:02:31 +0400 |
parents | ffd45b1a9c11 |
children | 8fbe247ad2d8 |
files | src/solaris/classes/sun/awt/X11/XDecoratedPeer.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/solaris/classes/sun/awt/X11/XDecoratedPeer.java Fri Apr 12 20:39:48 2013 +0400 +++ b/src/solaris/classes/sun/awt/X11/XDecoratedPeer.java Mon Apr 15 13:02:31 2013 +0400 @@ -1182,8 +1182,8 @@ "\nKFM's focused window: " + focusedWindow); } - // See 6522725, 6613426. - if (target == realNativeFocusedWindow) { + // A workaround for Metacity. See 6522725, 6613426, 7147075. + if (target == realNativeFocusedWindow && XWM.getWMID() == XWM.METACITY_WM) { if (focusLog.isLoggable(PlatformLogger.FINE)) { focusLog.fine("The window is already natively focused."); }