diff --git a/v3/pkg/application/application_darwin.go b/v3/pkg/application/application_darwin.go index 32fee5f6bd9..6b24748cd06 100644 --- a/v3/pkg/application/application_darwin.go +++ b/v3/pkg/application/application_darwin.go @@ -255,7 +255,7 @@ func newPlatformApp(app *App) *macosApp { //export processApplicationEvent func processApplicationEvent(eventID C.uint, data unsafe.Pointer) { - event := newApplicationEvent(int(eventID)) + event := newApplicationEvent(events.ApplicationEventType(eventID)) if data != nil { dataCStrJSON := C.serializationNSDictionary(data)