aboutsummaryrefslogtreecommitdiff
path: root/nexgb/examples/xinerama/main.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-10 17:01:42 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-10 17:01:42 -0400
commit0c50dc6241fa21712e041cfa2bfb9db4ccaef10a (patch)
tree90a3200414c8ad6df8e7983a8e73fedfbe2b324e /nexgb/examples/xinerama/main.go
parente239bb3c68a4981a3916534203c2fbd6b96f593c (diff)
downloadhaven-0c50dc6241fa21712e041cfa2bfb9db4ccaef10a.tar.gz
haven-0c50dc6241fa21712e041cfa2bfb9db4ccaef10a.tar.xz
haven-0c50dc6241fa21712e041cfa2bfb9db4ccaef10a.zip
a huge commit. splitting extensions into their own sub-packages.
Diffstat (limited to 'nexgb/examples/xinerama/main.go')
-rw-r--r--nexgb/examples/xinerama/main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/nexgb/examples/xinerama/main.go b/nexgb/examples/xinerama/main.go
index ec7f46a..896bb63 100644
--- a/nexgb/examples/xinerama/main.go
+++ b/nexgb/examples/xinerama/main.go
@@ -6,6 +6,7 @@ import (
"log"
"github.com/BurntSushi/xgb"
+ "github.com/BurntSushi/xgb/xinerama"
)
func main() {
@@ -17,13 +18,13 @@ func main() {
// Initialize the Xinerama extension.
// The appropriate 'Init' function must be run for *every*
// extension before any of its requests can be used.
- err = X.XineramaInit()
+ err = xinerama.Init(X)
if err != nil {
log.Fatal(err)
}
// Issue a request to get the screen information.
- reply, err := X.XineramaQueryScreens().Reply()
+ reply, err := xinerama.QueryScreens(X).Reply()
if err != nil {
log.Fatal(err)
}