Checks window position

(I can't compile on windows so I need to push constantly)

Signed-off-by: Norman Cao <maplenormandy@gmail.com>