4.7 Lock mouse to viewport problem

Just want to say I have same problem and it’s not fixed in 4.8.1 unfortunately…