mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Fixed: fixed x11 type convert
This commit is contained in:
parent
469cd4da5e
commit
5079db2df7
@ -40,7 +40,7 @@ func GetBounds(pid int, args ...int) (int, int, int, int) {
|
|||||||
return 0, 0, 0, 0
|
return 0, 0, 0, 0
|
||||||
}
|
}
|
||||||
|
|
||||||
return internalGetBounds(xid, isPid)
|
return internalGetBounds(int(xid), isPid)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetClient get the window client bounds
|
// GetClient get the window client bounds
|
||||||
@ -57,7 +57,7 @@ func GetClient(pid int, args ...int) (int, int, int, int) {
|
|||||||
return 0, 0, 0, 0
|
return 0, 0, 0, 0
|
||||||
}
|
}
|
||||||
|
|
||||||
return internalGetClient(xid, isPid)
|
return internalGetClient(int(xid), isPid)
|
||||||
}
|
}
|
||||||
|
|
||||||
// internalGetTitle get the window title
|
// internalGetTitle get the window title
|
||||||
@ -74,7 +74,7 @@ func internalGetTitle(pid int, args ...int) string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
return cgetTitle(xid, isPid)
|
return cgetTitle(int(xid), isPid)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ActivePidC active the window by Pid,
|
// ActivePidC active the window by Pid,
|
||||||
@ -93,7 +93,7 @@ func ActivePidC(pid int, args ...int) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
internalActive(xid, isPid)
|
internalActive(int(xid), isPid)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user