fix mac set active and active by pid

This commit is contained in:
vcaesar 2018-01-04 19:39:58 +08:00
parent cded847b46
commit 77ce3b91d7

View File

@ -563,7 +563,7 @@ void SetActive(const MData win){
// Attempt to raise the specified window object
if (AXUIElementPerformAction (win.AxID,
kAXRaiseAction) == kAXErrorSuccess)
kAXRaiseAction) != kAXErrorSuccess)
{
pid_t pid = 0;
// Attempt to retrieve the PID of the window