Activity log for bug #1971693

Date Who What changed Old value New value Message
2022-05-05 10:48:12 Dmitry Batrak bug added bug
2022-05-05 10:48:12 Dmitry Batrak attachment added JTextFieldTest.java https://bugs.launchpad.net/bugs/1971693/+attachment/5586950/+files/JTextFieldTest.java
2022-05-05 11:00:19 Launchpad Janitor ubuntu: status New Confirmed
2022-05-05 11:02:34 Francisco R. Santos bug added subscriber Francisco R. Santos
2022-05-05 11:06:12 Dmitry Batrak attachment added focusTest.c https://bugs.launchpad.net/ubuntu/+bug/1971693/+attachment/5586953/+files/focusTest.c
2022-05-05 12:27:58 Ubuntu Foundations Team Bug Bot tags jammy wayland bot-comment jammy wayland
2022-05-05 13:03:46 Dmitry Batrak affects ubuntu mutter (Ubuntu)
2022-05-06 02:10:47 Daniel van Vugt mutter (Ubuntu): status Confirmed Fix Committed
2022-05-06 02:10:57 Daniel van Vugt tags bot-comment jammy wayland bot-comment fixed-in-42.1 fixed-upstream jammy wayland
2022-05-06 02:11:07 Daniel van Vugt bug added subscriber Daniel van Vugt
2022-05-13 17:33:55 Jeremy Bícha nominated for series Ubuntu Jammy
2022-05-13 17:33:55 Jeremy Bícha bug task added mutter (Ubuntu Jammy)
2022-05-13 17:34:00 Jeremy Bícha mutter (Ubuntu): importance Undecided Low
2022-05-13 17:34:02 Jeremy Bícha mutter (Ubuntu Jammy): importance Undecided Low
2022-05-13 17:34:05 Jeremy Bícha mutter (Ubuntu Jammy): status New In Progress
2022-05-13 17:36:38 Jeremy Bícha 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. Impact ------ 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. 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). Test Case --------- 1. sudo apt install default-jre 2. Download the minimal test case app from comment #1 3. From a terminal run the app java Downloads/JTextFieldTest.java 4. Click on the terminal window (instead of the Java app) 5. Press Alt-Tab to switch focus back to the Java app 6. Type a few characters. The characters should show in the Java app's text field instead of in the terminal window. What Could Go Wrong ------------------- See the master bug for this update at LP: #1972726
2022-05-16 02:27:25 Daniel van Vugt marked as duplicate 1969574
2022-05-20 09:52:29 Timo Aaltonen mutter (Ubuntu Jammy): status In Progress Fix Committed
2022-05-20 09:52:31 Timo Aaltonen bug added subscriber Ubuntu Stable Release Updates Team
2022-05-20 09:52:32 Timo Aaltonen bug added subscriber SRU Verification
2022-05-20 09:52:35 Timo Aaltonen tags bot-comment fixed-in-42.1 fixed-upstream jammy wayland bot-comment fixed-in-42.1 fixed-upstream jammy verification-needed verification-needed-jammy wayland
2022-05-21 15:50:37 Launchpad Janitor mutter (Ubuntu): status Fix Committed Fix Released
2022-05-23 06:18:56 Daniel van Vugt removed duplicate marker 1969574
2022-05-24 07:32:31 trespasserw bug added subscriber trespasserw
2022-05-27 21:38:20 Jeremy Bícha tags bot-comment fixed-in-42.1 fixed-upstream jammy verification-needed verification-needed-jammy wayland bot-comment fixed-in-42.1 fixed-upstream jammy verification-done verification-done-jammy wayland
2022-05-30 09:15:36 Łukasz Zemczak removed subscriber Ubuntu Stable Release Updates Team
2022-05-30 09:15:51 Launchpad Janitor mutter (Ubuntu Jammy): status Fix Committed Fix Released