I am using BurntSushi/xgbutil library which I have gotten to work on Linux. Now I am trying to get it to create a window on my Win7 running cygwin with xorg-server installed.
I'm not sure what I need to do to initialize the display, if anything.
My Go code looks like this:
X, err := xgbutil.NewConnDisplay(displayname)
if err != nil {
log.Fatal(err)
}
When displayname = ":0"
I get cannot connect to :0: dial unix /tmp/.X11-unix/X0: socket: An address incompatible with the requested protocol was used.
When displayname = "localhost:0"
I get cannot connect to localhost:0: dial tcp [::1]:6000: connectex: No connection could be made because the target machine actively refused it.
I'm not sure whether my problem is the displayname I'm using or if there is something I need to do in cygwin to make it work?
I have started xwin by using the xlaunch utility and an empty window sits on my desktop and identifies itself as "Cygwin/x:0.0" in the title bar.