All right, I first tried to downgrade gnome-terminal to 3.46.7 and it didn't help. Then I downgraded mutter+gnome-shell back to 43.2 and it works fine now. The problem likely happens only in between apps that use XWayland (X11 compatible mode) as Thunderbird and Chrome and the mentioned gnome-terminal app.