I'm attaching the source code for a sample X client application, for which the problem can be reproduced reliably. The application uses 'globally active' input focus model, just like Java (AWT/Swing) applications, but also waits for 10 milliseconds before reacting to WM_TAKE_FOCUS message. If such an artificial delay isn't performed (just comment out 'usleep' call in the source code), the problem can be reproduced as well, but only with a certain probability.
The sample app can be compiled and launched using the following command: gcc twoFrames.c -lX11; ./a.out ** Attachment added: "twoFrames.c" https://bugs.launchpad.net/gnome-shell/+bug/1969574/+attachment/5596400/+files/twoFrames.c -- 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/1969574 Title: [Wayland] Can not select JetBrains IntelliJ IDEA windows (including Android Studio) with mouse in workspace Status in GNOME Shell: Unknown Status in mutter package in Ubuntu: Fix Released Bug description: I have 3 apps open in 1 workspace, When i press window key and i want to select app 2 or 3 with mouse, app 1 shows up! I can only go to app 2 with [window + tab] or [alt + tab] ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: gnome-shell 42.0-2ubuntu1 ProcVersionSignature: Ubuntu 5.15.0-25.25-generic 5.15.30 Uname: Linux 5.15.0-25-generic x86_64 ApportVersion: 2.20.11-0ubuntu82 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Wed Apr 20 11:05:02 2022 DisplayManager: gdm3 InstallationDate: Installed on 2021-11-25 (145 days ago) InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819) RelatedPackageVersions: mutter-common 42.0-3ubuntu2 SourcePackage: gnome-shell UpgradeStatus: Upgraded to jammy on 2022-04-16 (3 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell/+bug/1969574/+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

