BurntSushi / xgbutil

A utility library to make use of the X Go Binding easier. (Implements EWMH and ICCCM specs, key binding support, etc.)
Do What The F*ck You Want To Public License
194 stars 46 forks source link

add new api: NewConnXgb. We can use the specific xgb.Conn to init a xgbutil.XUtil #28

Closed harryfei closed 9 years ago

harryfei commented 9 years ago

Add a new api: NewConnXgb. We can use a specific/custom xgb.Conn to initialize a xgbutil.Xutil.

example:

xgbConn, _ := xgb.NewConnDisplay(":1")
X, _ := xgbutil.NewConnXgb(xgbConn)

Meanwhile, the NewConn and NewConnDisplay calls the NewConnXgb.

BurntSushi commented 9 years ago

Great. Thank you!