From 80c765ac5a07e835c9c20371d1ed9151762bfe41 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 18 Aug 2009 14:49:38 +0000 Subject: [PATCH] added wakeup implementation for osx_cocoa git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/utils.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osx/cocoa/utils.mm b/src/osx/cocoa/utils.mm index 3fdecac375..194abcd750 100644 --- a/src/osx/cocoa/utils.mm +++ b/src/osx/cocoa/utils.mm @@ -52,7 +52,9 @@ void wxBell() void wxMacWakeUp() { - // TODO + NSEvent* wakeupEvent = [NSEvent otherEventWithType:NSApplicationDefined location:NSZeroPoint + modifierFlags:NSAnyEventMask timestamp:0 windowNumber:0 context:nil subtype:0 data1:0 data2:0]; + [NSApp postEvent:wakeupEvent atStart:NO]; } #endif // wxUSE_BASE -- 2.47.2