nexgb: rewrite import paths

This commit is contained in:
Přemysl Eric Janouch 2018-09-08 19:57:27 +02:00
parent 48fb710f35
commit 7aa2601e66
Signed by: p
GPG Key ID: A0420B94F92B9493
35 changed files with 78 additions and 78 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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() {

View File

@ -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.

View File

@ -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.

View File

@ -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 (

View File

@ -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() {

View File

@ -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,

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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("")

View File

@ -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.

View File

@ -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.

View File

@ -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

View File

@ -26,7 +26,7 @@ import (
"testing"
"time"
"github.com/BurntSushi/xgb"
xgb "janouch.name/haven/nexgb"
)
// The X connection used throughout testing.

View File

@ -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.

View File

@ -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.

View File

@ -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.

View File

@ -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.