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