From 5079db2df75905a6d967b134bf3d78ede8d8a4ff Mon Sep 17 00:00:00 2001 From: vcaesar Date: Sun, 27 Nov 2022 18:06:14 -0800 Subject: [PATCH] Fixed: fixed x11 type convert --- robotgo_x11.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/robotgo_x11.go b/robotgo_x11.go index f8fdc00..4aba5a3 100644 --- a/robotgo_x11.go +++ b/robotgo_x11.go @@ -40,7 +40,7 @@ func GetBounds(pid int, args ...int) (int, int, int, int) { return 0, 0, 0, 0 } - return internalGetBounds(xid, isPid) + return internalGetBounds(int(xid), isPid) } // 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 internalGetClient(xid, isPid) + return internalGetClient(int(xid), isPid) } // internalGetTitle get the window title @@ -74,7 +74,7 @@ func internalGetTitle(pid int, args ...int) string { return "" } - return cgetTitle(xid, isPid) + return cgetTitle(int(xid), isPid) } // ActivePidC active the window by Pid, @@ -93,7 +93,7 @@ func ActivePidC(pid int, args ...int) error { return err } - internalActive(xid, isPid) + internalActive(int(xid), isPid) return nil }