< prev index next >

src/java.desktop/unix/classes/sun/awt/X11/XDecoratedPeer.java

Print this page

        

*** 36,45 **** --- 36,46 ---- import sun.awt.IconInfo; import sun.util.logging.PlatformLogger; import sun.awt.AWTAccessor; import sun.awt.SunToolkit; + import sun.font.FontUtilities; abstract class XDecoratedPeer extends XWindowPeer { private static final PlatformLogger log = PlatformLogger.getLogger("sun.awt.X11.XDecoratedPeer"); private static final PlatformLogger insLog = PlatformLogger.getLogger("sun.awt.X11.insets.XDecoratedPeer"); private static final PlatformLogger focusLog = PlatformLogger.getLogger("sun.awt.X11.focus.XDecoratedPeer");
*** 806,815 **** --- 807,822 ---- } updateChildrenSizes(); Point newLocation = getNewLocation(xe, currentInsets.left, currentInsets.top); + if (XWM.isMotif()) { + if (!isFocusableWindow() && FontUtilities.isAIX) { + Rectangle targetBounds = AWTAccessor.getComponentAccessor().getBounds(target); + newLocation = targetBounds.getLocation(); + } + } WindowDimensions newDimensions = new WindowDimensions(newLocation, new Dimension(scaleDown(xe.get_width()), scaleDown(xe.get_height())), copy(currentInsets), true);
< prev index next >