(aname string)
| 38 | ) |
| 39 | |
| 40 | func (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 | |
| 48 | func (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() |