Made CMake file require XInput.
Fixed window position for EWMH full screen.

Also added flushing after setting window position and size.
Improved reopen test input.