Thanks, this tiny bug is just one of the laundry list of MacOS’s many bugs. However, this solution seems to break window snapping so I can’t use it Tried experimenting with it for a bit but to no avail. This is on Sequoia.
This one works for me, too. But I had to change the trigger condition sice the problem also appeared with e.g. video windows where I can move the window anywhere not only using the title bar.