Move GetEventType to WindowManager from util.hpp.