RFR: 8301616: Drag & maximize to another monitor places window incorrectly (Windows)
Sergey Bylokhov
serb at openjdk.org
Thu Feb 2 20:39:29 UTC 2023
On Wed, 1 Feb 2023 16:17:02 GMT, Nikita Gubarkov <duke at openjdk.org> wrote:
> The `AwtWindow::CheckWindowDPIChange()` hack was introduced for popup windows and breaks maximization logic, so reshape window only if it's not maximized.
src/java.desktop/windows/native/libawt/windows/awt_Window.cpp line 2190:
> 2188: Devices::InstanceAccess devices;
> 2189: AwtWin32GraphicsDevice *device = devices->GetDevice(m_screenNum);
> 2190: if (device && !::IsZoomed(GetHWnd())) {
How does the maximization+drag work in WIndows11 if the maximized bounds are set(so the window will not fill the whole screen)? It will reset the zoom state during the drag, it will maximize the window on the new screen, or it will rescale the window on the new screen?
-------------
PR: https://git.openjdk.org/jdk/pull/12367
More information about the client-libs-dev
mailing list