--- old/src/java.desktop/macosx/classes/sun/awt/CGraphicsDevice.java 2019-08-17 15:14:21.000000000 -0700 +++ new/src/java.desktop/macosx/classes/sun/awt/CGraphicsDevice.java 2019-08-17 15:14:21.000000000 -0700 @@ -61,6 +61,10 @@ public CGraphicsDevice(final int displayID) { this.displayID = displayID; config = CGLGraphicsConfig.getConfig(this, displayID, 0); + // initializes default device state, might be redundant step since we + // call "displayChanged()" later anyway, but we do not want to leave the + // device in an inconsistent state after construction + displayChanged(); } /**