Add size_of_event and remove fictitious escape sequence for resize