diff options
| author | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-07 04:09:19 -0400 |
|---|---|---|
| committer | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-07 04:09:19 -0400 |
| commit | 8bcecd8ab592e67ade9cd728503581d5a84ca583 (patch) | |
| tree | 4d550a9ca8b2b19af6d66b99233e0ecde4543df9 /examples/atom.go | |
| parent | be6362d05c9563b8085eba2b990a145101e9c99f (diff) | |
lots of docs and examples
Diffstat (limited to 'examples/atom.go')
| -rw-r--r-- | examples/atom.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/examples/atom.go b/examples/atom.go deleted file mode 100644 index 2cb7132..0000000 --- a/examples/atom.go +++ /dev/null @@ -1,27 +0,0 @@ -package main - -import ( - // "fmt" - "log" - - "github.com/BurntSushi/xgb" -) - -func init() { - log.SetFlags(0) -} - -func main() { - X, err := xgb.NewConn() - if err != nil { - log.Fatal(err) - } - - aname := "_NET_ACTIVE_WINDOW" - atom, err := X.InternAtom(true, uint16(len(aname)), aname).Reply() - if err != nil { - log.Fatal(err) - } - log.Printf("%d", atom.Atom) -} - |
