mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
fix mac set active and active by pid
This commit is contained in:
parent
cded847b46
commit
77ce3b91d7
@ -563,7 +563,7 @@ void SetActive(const MData win){
|
|||||||
|
|
||||||
// Attempt to raise the specified window object
|
// Attempt to raise the specified window object
|
||||||
if (AXUIElementPerformAction (win.AxID,
|
if (AXUIElementPerformAction (win.AxID,
|
||||||
kAXRaiseAction) == kAXErrorSuccess)
|
kAXRaiseAction) != kAXErrorSuccess)
|
||||||
{
|
{
|
||||||
pid_t pid = 0;
|
pid_t pid = 0;
|
||||||
// Attempt to retrieve the PID of the window
|
// Attempt to retrieve the PID of the window
|
||||||
|
Loading…
Reference in New Issue
Block a user