--- old/src/java.desktop/unix/classes/sun/awt/X11/XMenuWindow.java 2015-11-06 02:13:04.612086982 -0500 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XMenuWindow.java 2015-11-06 02:13:04.444002984 -0500 @@ -278,7 +278,7 @@ */ protected Rectangle getSubmenuBounds(Rectangle itemBounds, Dimension windowSize) { Rectangle globalBounds = toGlobal(itemBounds); - Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); + Dimension screenSize = graphicsConfig.getBounds().getSize(); Rectangle res; res = fitWindowRight(globalBounds, windowSize, screenSize); if (res != null) {