Alt+Tab not working correctly with Java applications if application opens a modal window
Affected version
- Your OS and version: Ubuntu 20.04
$ uname -a
Linux mingun 5.4.0-59-generic #65-Ubuntu SMP Thu Dec 10 12:01:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
- Affected GNOME Shell version: 3.36.7
- Does this issue appear in XOrg and/or Wayland: how to find out?
Bug summary
When you Alt+Tab from java application with opened modal window you can't return to it with second Alt+Tab
Steps to reproduce
- Run attached SwingMultiWindows-1.0-SNAPSHOT.jar:
java -jar SwingMultiWindows-1.0-SNAPSHOT.jar
- Click Open child modal JDialog button
- Try to Alt+Tab to another application and back
Also see the attached video: JavaModalChildWindowBug
What happened
After modal dialog was opened, Java application not moved in the Alt+Tab list, so you can't return to it with Alt+Tab
What did you expect to happen
Alt+Tab should work as if you not open modal dialog (try to click Open child non-modal JDialog button and repeat Alt+Tab manipulations). In other words:
- select Java application
- Alt+Tab
- Alt+Tab
should return me to Java application
Relevant logs, screenshots, screencasts etc.
- Maven project: SwingMultiWindows.zip
- Compiled project: SwingMultiWindows-1.0-SNAPSHOT.jar
- Video with bug demonstration: JavaModalChildWindowBug
Edited by Mingun