Adjust window position