--- old/src/java.desktop/unix/classes/sun/awt/X11/XDecoratedPeer.java 2018-11-25 21:42:05 +0000 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XDecoratedPeer.java 2018-11-25 21:42:05 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -38,6 +38,7 @@ 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"); @@ -808,6 +809,12 @@ 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()),