Top right corner not registering as being inside the window, closing window behind Audacity

Version: 2.3.2

When I’m trying to close the Audacity window, I scroll my mouse to the top right, but when it’s at the pixel in the corner, it somehow does not register as clicking inside the Audacity window. It instead clicks the window behind Audacity, closing it. This is really annoying as the window behind could have been important and closing it could result in losing data. Is there any way to fix this?

I don’t recall that being a known bug, but that’s an old version of Audacity. The current version is 2.4.2: