--- old/src/solaris/classes/sun/awt/X11/XContentWindow.java 2014-10-30 19:49:10.000000000 +0300 +++ new/src/solaris/classes/sun/awt/X11/XContentWindow.java 2014-10-30 19:49:10.000000000 +0300 @@ -24,7 +24,9 @@ */ package sun.awt.X11; -import java.awt.*; +import java.awt.Component; +import java.awt.Rectangle; +import java.awt.Insets; import java.awt.event.ComponentEvent; @@ -160,23 +162,6 @@ } } - public void handleButtonPressRelease(XEvent xev) { - if (xev.get_type() == XConstants.ButtonPress) { - Window parentWindow = (Window)parentFrame.getTarget(); - /* - * In case the decorated frame is active but not focused - * (that is an owned window is currently focused) - * it should be made a focused window. - * This is needed to focus the frame when it's clicked - * in an empty spot of its content area. See 6886678. - */ - if (parentWindow != null && parentWindow.isActive() && !parentWindow.isFocused()) { - parentFrame.requestWindowFocus(); - } - } - super.handleButtonPressRelease(xev); - } - void purgeIconifiedExposeEvents() { for (SavedExposeEvent evt : iconifiedExposeEvents) { super.handleExposeEvent(evt.target, evt.x, evt.y, evt.w, evt.h);