The `AwtWindow::CheckWindowDPIChange()` hack was introduced for popup windows and breaks maximization logic, so reshape window only if it's not maximized.
------------- Commit messages: - 8301616: Drag & maximize to another monitor places window incorrectly (Windows) Changes: https://git.openjdk.org/jdk/pull/12367/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12367&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8301616 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/12367.diff Fetch: git fetch https://git.openjdk.org/jdk pull/12367/head:pull/12367 PR: https://git.openjdk.org/jdk/pull/12367
