[Wayland] Switching Java/AWT apps with mouse in Activities overview works intermittently
Affected version
Ubuntu 22.04
gnome-shell 42.4, mutter 42.2
The problem is reproducible in Wayland session, but not in X.Org session
Bug summary
Switching to a Java/AWT application's window in Activities overview, by clicking with mouse on the window's preview, doesn't work sometimes, with focus remaining in originally focused window.
Steps to reproduce
sudo apt install default-jre
- Download attached file TwoFrames.java
- From a terminal run the app:
java Downloads/TwoFrames.java
- Press Super (Window) key on the keyboard and click with mouse on frame 1. Then press Super, and click on frame 2. Repeat several times.
What happened
At some point, the focus switch will fail, with previously selected frame staying in focus.
What did you expect to happen
It's expected that a click on window's preview will make that window focused.