Fixes for unbounded mouse behaviour on scaled displays