mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-12 11:04:03 +00:00
update code style and godoc
This commit is contained in:
parent
5cb95037c5
commit
364f192178
@ -96,7 +96,7 @@ func ActivePID(pid int32, args ...int) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetXId get the xid
|
// GetXId get the xid return window and error
|
||||||
func GetXId(xu *xgbutil.XUtil, pid int32) (xproto.Window, error) {
|
func GetXId(xu *xgbutil.XUtil, pid int32) (xproto.Window, error) {
|
||||||
if xu == nil {
|
if xu == nil {
|
||||||
var err error
|
var err error
|
||||||
@ -123,6 +123,7 @@ func GetXidFromPid(xu *xgbutil.XUtil, pid int32) (xproto.Window, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if uint(pid) == wmPid {
|
if uint(pid) == wmPid {
|
||||||
return window, nil
|
return window, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user