rtf: fix event generation (regression from b495824808a053b70346e486252102f206c73d30)