aboutsummaryrefslogtreecommitdiff
path: root/nexgb/examples/xinerama.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexgb/examples/xinerama.go')
-rw-r--r--nexgb/examples/xinerama.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/nexgb/examples/xinerama.go b/nexgb/examples/xinerama.go
deleted file mode 100644
index 7fe9984..0000000
--- a/nexgb/examples/xinerama.go
+++ /dev/null
@@ -1,29 +0,0 @@
-package main
-
-import (
- "fmt"
- "log"
-
- "github.com/BurntSushi/xgb"
-)
-
-func main() {
- X, _ := xgb.NewConn()
-
- err := X.RegisterExtension("xinerama")
- if err != nil {
- log.Fatal(err)
- }
-
- reply, err := X.XineramaQueryScreens().Reply()
- if err != nil {
- log.Fatal(err)
- }
-
- fmt.Printf("Xinerama number: %d\n", reply.Number)
- for i, screen := range reply.ScreenInfo {
- fmt.Printf("%d :: X: %d, Y: %d, Width: %d, Height: %d\n",
- i, screen.XOrg, screen.YOrg, screen.Width, screen.Height)
- }
-}
-