aboutsummaryrefslogtreecommitdiff
path: root/nexgb/conn.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-05 18:22:24 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-05 18:22:24 -0400
commit369ad0d33e51035a3e48436fc85f60130b201437 (patch)
treee3b4bec82f4e21cfc0e8cc3c696f56b58bb30869 /nexgb/conn.go
parentb6715f376f5ea3efb58146c58924dcc7b1536181 (diff)
downloadhaven-369ad0d33e51035a3e48436fc85f60130b201437.tar.gz
haven-369ad0d33e51035a3e48436fc85f60130b201437.tar.xz
haven-369ad0d33e51035a3e48436fc85f60130b201437.zip
extensions are working! extensions are working!
Diffstat (limited to 'nexgb/conn.go')
-rw-r--r--nexgb/conn.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/nexgb/conn.go b/nexgb/conn.go
index 235402d..02396d4 100644
--- a/nexgb/conn.go
+++ b/nexgb/conn.go
@@ -10,7 +10,8 @@ import (
"strings"
)
-// connect connects to the X server given in the 'display' string.
+// connect connects to the X server given in the 'display' string,
+// and does all the necessary setup handshaking.
// If 'display' is empty it will be taken from os.Getenv("DISPLAY").
// Note that you should read and understand the "Connection Setup" of the
// X Protocol Reference Manual before changing this function:
@@ -87,6 +88,7 @@ func (c *Conn) connect(display string) error {
return nil
}
+// dial initializes the actual net connection with X.
func (c *Conn) dial(display string) error {
if len(display) == 0 {
display = os.Getenv("DISPLAY")