From cfe56e9e6bda15873fefce6f03d343ccdfc51f9b Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 13 May 2023 06:27:03 +0200 Subject: HiDPI: NEWT/MacOS: WindowDriver.sizeScreenPosInsetsChanged() is called w/ client-area in windowUnits (*fix regression*) --- src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newt/classes/jogamp') diff --git a/src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java b/src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java index 4326dbc13..9aab8d285 100644 --- a/src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java +++ b/src/newt/classes/jogamp/newt/driver/macosx/WindowDriver.java @@ -664,7 +664,7 @@ public class WindowDriver extends WindowImpl implements MutableSurface, DriverCl if( withinLiveResize && !resizeAnimatorPaused && null!=lh ) { resizeAnimatorPaused = lh.pauseRenderingAction(); } - sizeChanged(defer, false, newWidth, newHeight, force); + sizeChanged(defer, true /* windowUnits */, newWidth, newHeight, force); screenPositionChanged(defer, newX, newY); insetsChanged(false, left, right, top, bottom); if( !withinLiveResize && resizeAnimatorPaused ) { -- cgit v1.2.3