Switching "show mouse cursor" from on to off loses focus in PIE window

Just came across this issue in 4.7.

I’m quite sure this didn’t used to happen back in 4.2.