I found a bug when I switch windows in different projects.
for example, if I copy an audio from project 1 (window1) and paste it to a new project (in window 2), if I try to reduce the gain of that audio in window two, when I click it, immediately change it to the first project. That didn’t happen before.
I suspect that what you are seeing is this known and logged issue:
Windows: Hovering over the meters of an unfocussed project window brings that window to the front - original project retains focus #4094
https://github.com/audacity/audacity/issues/4094
Peter