when the window size is more than 640x480, events do not occur outside of where the window is focused. How do I fix this?