src/solaris/classes/sun/awt/X11/XDecoratedPeer.java

Print this page

        

@@ -1137,12 +1137,12 @@
             }
             Window realNativeFocusedWindow = XWindowPeer.getNativeFocusedWindow();
             focusLog.finest("Real native focused window: " + realNativeFocusedWindow +
                             "\nKFM's focused window: " + focusedWindow);
 
-            // See 6522725, 6613426.
-            if (target == realNativeFocusedWindow) {
+            // See 6522725, 6613426, 8009224
+            if (target == realNativeFocusedWindow && XWM.getWMID() != XWM.ENLIGHTEN_WM) {
                 focusLog.fine("The window is already natively focused.");
                 return true;
             }
         }
         focusLog.fine("Requesting focus to " + (this == toFocus ? "this window" : toFocus));