diff options
| author | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-05 18:22:24 -0400 |
|---|---|---|
| committer | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-05 18:22:24 -0400 |
| commit | cc5573858c6d9b41609ed1ba334d37e77887b69e (patch) | |
| tree | 06e4cbfd82cfca74e31d79a418bb3ecc12652445 /examples/property.go | |
| parent | 568f1c44fb9489a7f7762e96544f0173b23ec61b (diff) | |
extensions are working! extensions are working!
Diffstat (limited to 'examples/property.go')
| -rw-r--r-- | examples/property.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/property.go b/examples/property.go index 2477df4..45144c7 100644 --- a/examples/property.go +++ b/examples/property.go @@ -27,13 +27,15 @@ func main() { root := X.DefaultScreen().Root aname := "_NET_ACTIVE_WINDOW" - atom, err := X.InternAtom(true, uint16(len(aname)), aname) + atom, err := X.InternAtom(true, uint16(len(aname)), aname).Reply() if err != nil { log.Fatal(err) } - reply, err := X.GetProperty(false, root, atom.Atom, xgb.GetPropertyTypeAny, - 0, (1<<32)-1) + reply, err := X.GetProperty(false, root, atom.Atom, + xgb.GetPropertyTypeAny, 0, (1<<32)-1).Reply() + if err != nil { + log.Fatal(err) + } log.Printf("%X", get32(reply.Value)) } - |
