I recently switched to Linux. Everything went fine, but when I installed the gnome-shell, it started to ignore clicks outside the focused window. I cannot click on another window to focus it or click on any gnome UI elements. The super key also does nothing. I installed gnome-tweaks and I use a user theme, but that shouldn't be the problem because the problem remained even when I had a fresh install. Also, sometimes when I reboot it works normally. But after another reboot, it comes back.
PS- I found a very temporary fix: If I move the focused (or sometimes other windows) it will start recognizing my keystrokes. On Firefox I need to move the window by the bar with open tabs, as I cannot move it with the title bar.
I read this thread by someone who had a very similar issue, but the solution did not work for me. I think it has to do something with NVidia drivers, because if I change them then the frequency of this happening changes.
Sorry if something is weirdly written. English is not my native language.