From 77ce3b91d7821cef59eb3c5c30f4990755810487 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Thu, 4 Jan 2018 19:39:58 +0800 Subject: [PATCH] fix mac set active and active by pid --- window/window.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window/window.h b/window/window.h index 8d674d7..6f3c104 100644 --- a/window/window.h +++ b/window/window.h @@ -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