RFR: 8301616: Drag & maximize to another monitor places window incorrectly (Windows) [v2]

Sergey Bylokhov serb at openjdk.org
Thu Mar 23 22:56:22 UTC 2023


On Wed, 15 Mar 2023 18:59:09 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.
>
> Nikita Gubarkov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8301616: Drag & maximize to another monitor places window incorrectly (Windows)

src/java.desktop/windows/native/libawt/windows/awt_Window.cpp line 374:

> 372:     WINDOWPOS * wp = (WINDOWPOS *)windowPos;
> 373: 
> 374:     // There's no good way to detect partial maximization (e.g. Aero Snap),

Does the bug affect all windows, or only frames/dialog? Can we move this code to the AwtFrame#WmWindowPosChanging?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/12367#discussion_r1146954325



More information about the client-libs-dev mailing list