--- old/src/solaris/classes/sun/awt/X11/XDecoratedPeer.java 2013-04-10 13:15:48.000000000 +0400 +++ new/src/solaris/classes/sun/awt/X11/XDecoratedPeer.java 2013-04-10 13:15:48.000000000 +0400 @@ -1139,8 +1139,8 @@ focusLog.finest("Real native focused window: " + realNativeFocusedWindow + "\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) { focusLog.fine("The window is already natively focused."); return true; }