On Tue, 9 Jun 2026 19:58:21 GMT, Marius Hanl <[email protected]> wrote:
> But since it works completely fine on Windows, it sounds like a problem > somewhere else. I remember that there were some differences when the > application is dragged onto another screen - Windows made one more relayout > than MacOS or something? I think @beldenfox found something out there, but > can't remember where it was. On Mac the OS tracks the window size is in logical units and it remains the same even when it's moved to a screen with a different scaling factor. So on macOS you won't get View.notifyResize or Window.notifyResize when a window moves, you'll only get Window.notifyScaleChanged. The Windows OS works in pixels so the dimensions of a window do change when it moves to a screen with a different scaling factor. I haven't tested this but I'm almost certain you'll get both View.notifyResize and Window.notifyResize in addition to Window.notifyScaleChanged. I would look at how ViewEvent.RESIZE and WindowEvent.RESIZE are being handled. Whatever's going on in those blocks of code will trigger on Windows but not on macOS. ------------- PR Comment: https://git.openjdk.org/jfx/pull/1945#issuecomment-4675842241
