src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java

Print this page

        

@@ -352,11 +352,11 @@
     }
 
     @Override
     public Insets getScreenInsets(final GraphicsConfiguration gc) {
         final CGraphicsConfig cgc = (CGraphicsConfig) gc;
-        final int displayId = cgc.getDevice().getCoreGraphicsScreen();
+        final int displayId = cgc.getDevice().getCGDisplayID();
         Rectangle fullScreen, workArea;
         final long screen = CWrapper.NSScreen.screenByDisplayId(displayId);
         try {
             fullScreen = CWrapper.NSScreen.frame(screen).getBounds();
             workArea = CWrapper.NSScreen.visibleFrame(screen).getBounds();