mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-15 23:55:35 +02:00
possible fix for mavericks
This commit is contained in:
parent
50e97e23f0
commit
3d963bfbe7
7 changed files with 68 additions and 14 deletions
|
@ -108,9 +108,21 @@ COSXScreen::COSXScreen(IEventQueue* events, bool isPrimary, bool autoShowHideCur
|
|||
m_screensaver = new COSXScreenSaver(m_events, getEventTarget());
|
||||
m_keyState = new COSXKeyState(m_events);
|
||||
|
||||
// TODO: http://stackoverflow.com/questions/2950124/enable-access-for-assistive-device-programmatically
|
||||
if (m_isPrimary && !AXAPIEnabled())
|
||||
throw XArch("system setting not enabled: \"Enable access for assistive devices\"");
|
||||
// only needed when running as a server.
|
||||
if (m_isPrimary) {
|
||||
|
||||
#if defined(MAC_OS_X_VERSION_10_9)
|
||||
// we can't pass options to show the dialog, this must be done by the gui.
|
||||
//if (!AXIsProcessTrusted()) {
|
||||
// throw XArch("assistive devices does not trust this process, allow it in system settings.");
|
||||
//}
|
||||
#else
|
||||
// now deprecated in mavericks.
|
||||
if (!AXAPIEnabled()) {
|
||||
throw XArch("assistive devices is not enabled, enable it in system settings.");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// install display manager notification handler
|
||||
#if defined(MAC_OS_X_VERSION_10_5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue