> The previous [JDK-8319103](https://bugs.openjdk.org/browse/JDK-8319103) fix 
> was not complete.
> 
> The case where a menu item with a focusable component was not a direct child 
> of a window was missing(failing the `if (window == oppositeWindow.getParent() 
> ) {` check), so the ungrab event was posted prematurely.
> 
> This can be fixed by adding `waylandWindowFocusListener` to all submenus in 
> hierarchy.
> 
> The manual test updated to use this case, and also added an automated test 
> that checks that it didn't close prematurely.

Alexander Zvegintsev has updated the pull request incrementally with one 
additional commit since the last revision:

  review comments

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/22729/files
  - new: https://git.openjdk.org/jdk/pull/22729/files/368494e2..65c8a2b5

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=22729&range=05
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=22729&range=04-05

  Stats: 3 lines in 1 file changed: 2 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/22729.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22729/head:pull/22729

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

Reply via email to