Windows count check was added as part of [JDK-8290469](https://bugs.openjdk.org/browse/JDK-8290469) fix, to avoid window positional shift which happens during application startup. The condition handled only for windows type of Window and not for Frame/Dialog which is the root cause for the bug. I have updated the condition for other Window types as a fix.
------------- Commit messages: - Fix Changes: https://git.openjdk.org/jdk/pull/11859/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11859&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8299309 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/11859.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11859/head:pull/11859 PR: https://git.openjdk.org/jdk/pull/11859
