The problem seems to be related to Java apps using 'Globally Active' input focus model (as per https://www.x.org/releases/current/doc/xorg- docs/icccm/icccm.html#Input_Focus). I'm attaching a minimal native X application's code, for which the problem can be reproduced as well - see focusTest.c file. Steps to reproduce are the same as for Java app - launch the app from terminal, click back at terminal window, press Alt+Tab, then type some text. App's window will be raised but won't receive keyboard focus, while will still receive X protocol's FocusIn event.
** Attachment added: "focusTest.c" https://bugs.launchpad.net/ubuntu/+bug/1971693/+attachment/5586953/+files/focusTest.c -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1971693 Title: Alt+Tab is broken for Java (AWT/Swing) apps in Wayland session To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+bug/1971693/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
