On Thu Sep 15 20:41:21 2022 +0000, Jacek Caban wrote:
You never initialize event type, so I think it will always be an empty string. The type (as in event.type, not the type passed to createEvent) is not known until the event is actually dispatched.
I see. I used the same method from create_event_from_nsevent just above it, but I suppose that one is used for already dispatched nsevents.
Not sure how to handle that here. Should I drop this patch? The event id is mostly needed for non-gecko events to create the proper event in alloc_event.