From 17410d57065e9b20c2cf0e1d8f2caf645962b5b1 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Fri, 2 Aug 2013 16:48:09 +0000 Subject: [PATCH] patch by Yutaka Tsutano - fixes: Bug #3287 - Mac does not wake up --- src/lib/platform/COSXScreen.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/lib/platform/COSXScreen.cpp b/src/lib/platform/COSXScreen.cpp index 69332e10..e60a3a9e 100644 --- a/src/lib/platform/COSXScreen.cpp +++ b/src/lib/platform/COSXScreen.cpp @@ -800,6 +800,17 @@ COSXScreen::enter() // reset buttons m_buttonState.reset(); + // patch by Yutaka Tsutano + // wakes the client screen + // http://synergy-foss.org/spit/issues/details/3287#c12 + io_registry_entry_t entry = IORegistryEntryFromPath( + kIOMasterPortDefault, + "IOService:/IOResources/IODisplayWrangler"); + if (entry != MACH_PORT_NULL) { + IORegistryEntrySetCFProperty(entry, CFSTR("IORequestIdle"), kCFBooleanFalse); + IOObjectRelease(entry); + } + // avoid suppression of local hardware events // stkamp@users.sourceforge.net CGSetLocalEventsFilterDuringSupressionState(