Hopefully this is fixed by
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2402 which has
gone into the mutter 42.1 release. See also bug 1969574.
** Changed in: mutter (Ubuntu)
Status: Confirmed => Fix Committed
** Tags added: fixed-in-42.1 fixed-upstream
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to mutter in Ubuntu.
https://bugs.launchpad.net/bugs/1971693
Title:
Alt+Tab is broken for Java (AWT/Swing) apps in Wayland session
Status in mutter package in Ubuntu:
Fix Committed
Bug description:
When switching to a Java UI application using Alt+Tab, very often
application's window is raised, but it doesn't get keyboard focus - it stays in
the previous application, and that application continues to process keyboard
events. When the problem occurs, hovering mouse over Java app's window gets the
focus transferred to it.
This problem only happens in Wayland session, not in X.Org session. It can be
reproduced in Ubuntu 22.04, but not in 20.04.4 version.
---
$ lsb_release -rd
Description: Ubuntu 22.04 LTS
Release: 22.04
---
The problem seems to affect all Java versions - reproduced for different
OpenJDK builds (8, 11, 17, 18). It can also be observed for Java version
provided by Ubuntu's 'default-jre' package (11.0.15+10-Ubuntu-0ubuntu0.22.04.1).
Source code for a minimal Java application, for which the problem can be
reproduced, is attached. Download the provided JTextFieldTest.java file, then
from terminal prompt execute 'java JTextFieldTest.java' (Java 11 or later is
required, command should be executed from the location of the downloaded file).
App's window with a text field will be opened. Click with mouse on the terminal
window, then press Alt+Tab and enter some text.
Expected result: focus is switched to Java app's window, and text appears in
its text field.
Actual result: Java app's window is raised, but focus stays in terminal
window, and typed text appears there.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1971693/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp