Adjusts the position of the events in the gui_layer.

When the window's size is not the size of the camera, the positions
did not match.