diff --git a/src/platform/macos/mod.rs b/src/platform/macos/mod.rs index 299f9c3e..b315d1da 100644 --- a/src/platform/macos/mod.rs +++ b/src/platform/macos/mod.rs @@ -822,6 +822,12 @@ unsafe fn NSEventToEvent(window: &Window, nsevent: id) -> Option { appkit::NSEventTypePressure => { Some(Event::TouchpadPressure(nsevent.pressure(), nsevent.stage())) }, + appkit::NSApplicationDefined => { + match nsevent.subtype() { + appkit::NSEventSubtype::NSApplicationActivatedEventType => { Some(Event::Awakened) } + _ => { None } + } + }, _ => { None }, } }