This is my exact problem: https://gitlab.gnome.org/GNOME/mutter/-/issues/3404
Since my installation of Gnome 46 a couple days ago or so I have been noticing that for some programs windows are visible as a certain size (as in, I can see the box with content in it rendered on my screen), but the cursor/mouse believes the "true" window to be much smaller. Clicking outside of that "true" window (while still in the visible window) counts as a click on whatever element is underneath the current window.
If I minimize the desktop and try again the click on the app works fine. Apps include
- Chrome
- VS Code