Fixes a timing issue in `JPopupMenuOverlapping`.

The test previously cached the content pane screen location immediately after 
showing the frame.
This may not work correctly with every Linux window manager, as multiple 
`ConfigureNotify` events may be delivered while the window geometry is being 
settled.

The location is now obtained in `performTest()`, after the window has settled:

https://github.com/openjdk/jdk/blob/8a507d85e9b7c7a0acfd7fa72b898b9a9ce2d5ee/test/jdk/java/awt/Mixing/AWT_Mixing/OverlappingTestBase.java#L496-L504

Testing looks good.


---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - 8390545: java/awt/Mixing/AWT_Mixing/JPopupMenuOverlapping.java fails on OL9

Changes: https://git.openjdk.org/jdk/pull/32420/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32420&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8390545
  Stats: 4 lines in 1 file changed: 2 ins; 2 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/32420.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/32420/head:pull/32420

PR: https://git.openjdk.org/jdk/pull/32420

Reply via email to