// UngrabPointer undoes GrabPointer.
func UngrabPointer(xu *xgbutil.XUtil) {
	xproto.UngrabPointer(xu.Conn(), 0)
}
示例#2
0
文件: trlock.go 项目: chlunde/trlock
// Unlock restores user control of keyboard and pointer
func Unlock(X *xgb.Conn) {
	xproto.UngrabKeyboard(X, xproto.TimeCurrentTime)

	xproto.UngrabPointer(X, xproto.TimeCurrentTime)
}