Fixed some little bugs so the window size is more reliable. This is needed because the width of the border seems to be substracted from the total pseudo fullscreen size.