fckeuspy-go/vendor/github.com/rymdport/portal/portal.go

16 lines
454 B
Go

package portal
import (
"errors"
"strconv"
)
// ErrunexpectedResonse is returned when the received dbus data was in an unexpected format.
var ErrUnexpectedResponse = errors.New("unexpected response from dbus")
// FormatX11WindowHandle takes an X11 window handle and formats it
// in the string format that is required for the portal APIs.
func FormatX11WindowHandle(handle uintptr) string {
return "x11:" + strconv.FormatUint(uint64(handle), 16)
}