nexgb: rewrite import paths
This commit is contained in:
parent
48fb710f35
commit
7aa2601e66
@ -4,9 +4,9 @@ package bigreq
|
||||
// This file is automatically generated from bigreq.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the BIG-REQUESTS extension.
|
||||
|
@ -4,10 +4,10 @@ package composite
|
||||
// This file is automatically generated from composite.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xfixes"
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xfixes"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the Composite extension.
|
||||
|
@ -4,10 +4,10 @@ package damage
|
||||
// This file is automatically generated from damage.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xfixes"
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xfixes"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the DAMAGE extension.
|
||||
|
@ -21,8 +21,8 @@ accompanying documentation can be found in examples/create-window.
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/BurntSushi/xgb"
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@ -72,8 +72,8 @@ can be found in examples/xinerama.
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"github.com/BurntSushi/xgb"
|
||||
"github.com/BurntSushi/xgb/xinerama"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
"janouch.name/haven/nexgb/xinerama"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -4,9 +4,9 @@ package dpms
|
||||
// This file is automatically generated from dpms.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the DPMS extension.
|
||||
|
@ -4,9 +4,9 @@ package dri2
|
||||
// This file is automatically generated from dri2.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the DRI2 extension.
|
||||
|
@ -9,8 +9,8 @@ import (
|
||||
"runtime/pprof"
|
||||
"time"
|
||||
|
||||
"github.com/BurntSushi/xgb"
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -7,8 +7,8 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/BurntSushi/xgb"
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -11,7 +11,7 @@ to events.
|
||||
If you're looking to query information about your window manager,
|
||||
get-active-window is a start. However, to do anything extensive requires
|
||||
a lot of boiler plate. To that end, I'd recommend use of my higher level
|
||||
library, xgbutil: https://github.com/BurntSushi/xgbutil
|
||||
library, xgbutil: https://janouch.name/haven/nexgbutil
|
||||
|
||||
There are also examples of using the Xinerama and RandR extensions, if you're
|
||||
interested in querying information about your active heads. In RandR's case,
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/BurntSushi/xgb"
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -14,9 +14,9 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/BurntSushi/xgb"
|
||||
"github.com/BurntSushi/xgb/randr"
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
"janouch.name/haven/nexgb/randr"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/BurntSushi/xgb"
|
||||
"github.com/BurntSushi/xgb/xinerama"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
"janouch.name/haven/nexgb/xinerama"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -4,9 +4,9 @@ package ge
|
||||
// This file is automatically generated from ge.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the Generic Event Extension extension.
|
||||
|
@ -4,9 +4,9 @@ package glx
|
||||
// This file is automatically generated from glx.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the GLX extension.
|
||||
|
@ -4,10 +4,10 @@ package randr
|
||||
// This file is automatically generated from randr.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/render"
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/render"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the RANDR extension.
|
||||
|
@ -4,9 +4,9 @@ package record
|
||||
// This file is automatically generated from record.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the RECORD extension.
|
||||
|
@ -4,9 +4,9 @@ package render
|
||||
// This file is automatically generated from render.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the RENDER extension.
|
||||
|
@ -4,9 +4,9 @@ package res
|
||||
// This file is automatically generated from res.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the X-Resource extension.
|
||||
|
@ -4,9 +4,9 @@ package screensaver
|
||||
// This file is automatically generated from screensaver.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the MIT-SCREEN-SAVER extension.
|
||||
|
@ -4,9 +4,9 @@ package shape
|
||||
// This file is automatically generated from shape.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the SHAPE extension.
|
||||
|
@ -4,9 +4,9 @@ package shm
|
||||
// This file is automatically generated from shm.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the MIT-SHM extension.
|
||||
|
@ -4,9 +4,9 @@ package xcmisc
|
||||
// This file is automatically generated from xc_misc.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the XC-MISC extension.
|
||||
|
@ -4,9 +4,9 @@ package xevie
|
||||
// This file is automatically generated from xevie.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the XEVIE extension.
|
||||
|
@ -4,9 +4,9 @@ package xf86dri
|
||||
// This file is automatically generated from xf86dri.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the XFree86-DRI extension.
|
||||
|
@ -4,9 +4,9 @@ package xf86vidmode
|
||||
// This file is automatically generated from xf86vidmode.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the XFree86-VidModeExtension extension.
|
||||
|
@ -4,11 +4,11 @@ package xfixes
|
||||
// This file is automatically generated from xfixes.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/render"
|
||||
"github.com/BurntSushi/xgb/shape"
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/render"
|
||||
"janouch.name/haven/nexgb/shape"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the XFIXES extension.
|
||||
|
@ -79,10 +79,10 @@ func (c *Context) Morph(xmlBytes []byte) {
|
||||
// Write imports. We always need to import at least xgb.
|
||||
// We also need to import xproto if it's an extension.
|
||||
c.Putln("import (")
|
||||
c.Putln("\"github.com/BurntSushi/xgb\"")
|
||||
c.Putln("xgb \"janouch.name/haven/nexgb\"")
|
||||
c.Putln("")
|
||||
if c.protocol.isExt() {
|
||||
c.Putln("\"github.com/BurntSushi/xgb/xproto\"")
|
||||
c.Putln("\"janouch.name/haven/nexgb/xproto\"")
|
||||
}
|
||||
|
||||
sort.Sort(Protocols(c.protocol.Imports))
|
||||
@ -91,7 +91,7 @@ func (c *Context) Morph(xmlBytes []byte) {
|
||||
if imp.Name == "xproto" {
|
||||
continue
|
||||
}
|
||||
c.Putln("\"github.com/BurntSushi/xgb/%s\"", imp.Name)
|
||||
c.Putln("\"janouch.name/haven/nexgb/%s\"", imp.Name)
|
||||
}
|
||||
c.Putln(")")
|
||||
c.Putln("")
|
||||
|
@ -4,9 +4,9 @@ package xinerama
|
||||
// This file is automatically generated from xinerama.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the XINERAMA extension.
|
||||
|
@ -4,9 +4,9 @@ package xprint
|
||||
// This file is automatically generated from xprint.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the XpExtension extension.
|
||||
|
@ -4,7 +4,7 @@ package xproto
|
||||
// This file is automatically generated from xproto.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
)
|
||||
|
||||
// Setup parses the setup bytes retrieved when
|
||||
|
@ -26,7 +26,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
)
|
||||
|
||||
// The X connection used throughout testing.
|
||||
|
@ -4,9 +4,9 @@ package xselinux
|
||||
// This file is automatically generated from xselinux.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the SELinux extension.
|
||||
|
@ -4,9 +4,9 @@ package xtest
|
||||
// This file is automatically generated from xtest.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the XTEST extension.
|
||||
|
@ -4,10 +4,10 @@ package xv
|
||||
// This file is automatically generated from xv.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/shm"
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"janouch.name/haven/nexgb/shm"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
)
|
||||
|
||||
// Init must be called before using the XVideo extension.
|
||||
|
@ -4,10 +4,10 @@ package xvmc
|
||||
// This file is automatically generated from xvmc.xml. Edit at your peril!
|
||||
|
||||
import (
|
||||
"github.com/BurntSushi/xgb"
|
||||
xgb "janouch.name/haven/nexgb"
|
||||
|
||||
"github.com/BurntSushi/xgb/xproto"
|
||||
"github.com/BurntSushi/xgb/xv"
|
||||
"janouch.name/haven/nexgb/xproto"
|
||||
"janouch.name/haven/nexgb/xv"
|
||||
)
|
||||
|
||||
// Init must be called before using the XVideo-MotionCompensation extension.
|
||||
|
Loading…
Reference in New Issue
Block a user