Integrated: 8342096: Popup menus that request focus are not shown on Linux with Wayland

Alexander Zvegintsev azvegint at openjdk.org
Wed Jan 29 22:11:57 UTC 2025


On Fri, 13 Dec 2024 04:16:06 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: d985b31c
Author:    Alexander Zvegintsev <azvegint at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/d985b31cbb5646c526e1a68a7547f26f56d37607
Stats:     271 lines in 3 files changed: 249 ins; 6 del; 16 mod

8342096: Popup menus that request focus are not shown on Linux with Wayland

Reviewed-by: aivanov, honkar

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

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


More information about the client-libs-dev mailing list