Set -1 for the event's w and h properties if they were not set.