Merge pull request #748 from go-vgo/bitmap-pr

Update: use one style name with mac api
This commit is contained in:
Evans 2025-11-29 08:54:24 -08:00 committed by GitHub
commit b06c34ba3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -121,7 +121,7 @@ func ActivePid(pid int, args ...int) error {
}
// get the xid from pid
xid, err := GetXidFromPid(xu, pid)
xid, err := GetXidByPid(xu, pid)
if err != nil {
return err
}
@ -145,12 +145,19 @@ func GetXid(xu *xgbutil.XUtil, pid int) (xproto.Window, error) {
}
}
xid, err := GetXidFromPid(xu, pid)
xid, err := GetXidByPid(xu, pid)
return xid, err
}
// Deprecated: use the GetXidByPid(),
//
// GetXidFromPid get the xid from pid
func GetXidFromPid(xu *xgbutil.XUtil, pid int) (xproto.Window, error) {
return GetXidByPid(xu, pid)
}
// GetXidByPid get the xid from pid
func GetXidByPid(xu *xgbutil.XUtil, pid int) (xproto.Window, error) {
windows, err := ewmh.ClientListGet(xu)
if err != nil {
return 0, err