MCPcopy Create free account
hub / github.com/dim13/gone / atom

Method atom

xorg.go:40–46  ·  view source on GitHub ↗
(aname string)

Source from the content-addressed store, hash-verified

38)
39
40func (x Xorg) atom(aname string) *xproto.InternAtomReply {
41 a, err := xproto.InternAtom(x.conn, true, uint16(len(aname)), aname).Reply()
42 if err != nil {
43 log.Fatal("atom: ", err)
44 }
45 return a
46}
47
48func (x Xorg) property(w xproto.Window, a *xproto.InternAtomReply) (*xproto.GetPropertyReply, error) {
49 return xproto.GetProperty(x.conn, false, w, a.Atom, xproto.GetPropertyTypeAny, 0, (1<<32)-1).Reply()

Callers 1

ConnectFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected