Better ignoring of mouse events outside window