Sometimes Thunderbird freezes on the Panel after quiting the program and simultaniously switching windows with ALT+TAB doesn't work anymore.
On my computer I can reproduce it this way:
Ubuntu 21.10
Thunderbird 91.5.0 (64-bit)
step 1: open a Terminal window
step 2: open a second Terminal window
note: it can also be any other window of another program, but for this test I used Terminal windows
step 3: open Thunderbird
step 4: check if with ALT+TAB you can switch normally between all 3 the windows; if so, proceed.
note: check also if SUPER+TAB switches normally between the programs Terminal and Thunderbird
step 5: go to Thunderbird and start a new message with CTRL+N
step 6: write a test message and send it (with CTRL+ENTER)
note: sending a message is essential, I can't reproduce the error if I only open Thunderbird and only read messages
step 7: at this point the error/bug occurs: with ALT+TAB I can't switch anymore to the opened Terminal windows.
note that SUPER+TAB still works normally
Not only the window switching is malfunctioning right now, but also Thunderbird doesn't quit anymore as it should:
step 8: go with the still functioning super key (windows key) SUPER to the opened Terminal windows and close them.
step 9: go to the opened Thunderbird window and close it under File->Quit (or with CTRL+Q)
step 10: hover with the mouse over the (side) Panel and see that Thunderbird is indicated still as running, even though it has been closed already.
step 11: right-click on the Thunderbird symbol in the panel and try to close the program with Quit there: this doesn't work and on my computer the menu that appears after right-clicking on Thunderbird in the panel stays open and doesn't go away anymore at all.
What can cause this problem? How can I debug it myself further?
Someone else already asked this question here, but following the suggestion in a comment there I re-post the same question in my own words here.