aboutsummaryrefslogtreecommitdiff
path: root/nexgb/examples/seq-nowrap.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-07 04:09:19 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-07 04:09:19 -0400
commitdc48249e1acea54b391f53b95f16e515dead7c97 (patch)
tree3467fee8294f8800977de0df3030d82e69bb7528 /nexgb/examples/seq-nowrap.go
parent3bf376bd6648e011de9131c1d90a39c6d3890d65 (diff)
downloadhaven-dc48249e1acea54b391f53b95f16e515dead7c97.tar.gz
haven-dc48249e1acea54b391f53b95f16e515dead7c97.tar.xz
haven-dc48249e1acea54b391f53b95f16e515dead7c97.zip
lots of docs and examples
Diffstat (limited to 'nexgb/examples/seq-nowrap.go')
-rw-r--r--nexgb/examples/seq-nowrap.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/nexgb/examples/seq-nowrap.go b/nexgb/examples/seq-nowrap.go
deleted file mode 100644
index 994a07b..0000000
--- a/nexgb/examples/seq-nowrap.go
+++ /dev/null
@@ -1,29 +0,0 @@
-package main
-
-import (
- "fmt"
-
- "github.com/BurntSushi/xgb"
-)
-
-func main() {
- X, _ := xgb.NewConn()
-
- for i := 1; i <= 1<<16 + 10; i++ {
- X.NoOperation()
- // fmt.Printf("%d. No-Op\n", i)
- }
-
- aname := "_NET_ACTIVE_WINDOW"
-
- for i := 1; i <= 10; i++ {
- atom, err := X.InternAtom(true, uint16(len(aname)), aname).Reply()
- if err != nil {
- fmt.Println(err)
- } else {
- fmt.Printf("%d. Sequence: %d, Atom: %d\n",
- i, atom.Sequence, atom.Atom)
- }
- }
-}
-