summaryrefslogtreecommitdiff
path: root/conn.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <[email protected]>2012-05-05 18:22:24 -0400
committerAndrew Gallant (Ocelot) <[email protected]>2012-05-05 18:22:24 -0400
commitcc5573858c6d9b41609ed1ba334d37e77887b69e (patch)
tree06e4cbfd82cfca74e31d79a418bb3ecc12652445 /conn.go
parent568f1c44fb9489a7f7762e96544f0173b23ec61b (diff)
extensions are working! extensions are working!
Diffstat (limited to 'conn.go')
-rw-r--r--conn.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/conn.go b/conn.go
index 235402d..02396d4 100644
--- a/conn.go
+++ b/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")