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

Print this page

        

*** 352,362 **** } @Override public Insets getScreenInsets(final GraphicsConfiguration gc) { final CGraphicsConfig cgc = (CGraphicsConfig) gc; ! final int displayId = cgc.getDevice().getCoreGraphicsScreen(); Rectangle fullScreen, workArea; final long screen = CWrapper.NSScreen.screenByDisplayId(displayId); try { fullScreen = CWrapper.NSScreen.frame(screen).getBounds(); workArea = CWrapper.NSScreen.visibleFrame(screen).getBounds(); --- 352,362 ---- } @Override public Insets getScreenInsets(final GraphicsConfiguration gc) { final CGraphicsConfig cgc = (CGraphicsConfig) gc; ! 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();