Ctrl key hangs in Terminal+Midnight Commander after switching workspaces
This is an issue that has been plaguing me for a long time (years) with different versions of Gnome. Currently running Gnome 42 on Wayland on Debian (sid).
What happens is this:
- I have a terminal open, usually running Midnight Commander (this happens with gnome-terminal or the newer Console too).
- I switch workspaces with the key combination Ctrl-Alt-Left/Right (Up/Down when workspaces used to be vertically arranged).
- Very occasionally, Terminal/Midnight Commander acts as if the Ctrl key stays pressed, and stays stuck in that state.
- Closing and re-opening all terminals doesn't resolve the issue.
- It's difficult to reproduce, it only happens sporadically.
Known "workarounds":
- Occasionally, switching workspaces multiple times over and over again in the same way resolves the issue.
- Logging out or rebooting resolves the issue (obviously, but a hassle).
- Surprisingly, I recently figured out that running the "pangoterm" terminal emulator resolves the issue 100% of the time (GTK2, libvterm, xwayland). Other terminal emulators like xterm, don't have this property.
I hesitate to file it on Mutter, but it's my best bet considering the fact it seems to be independent of the terminal emulator used. I haven't reported it before because it's so difficult to reproduce and work around.