rigth way to get windowsize