Cleanup/familiarization commit after spending some time away from illi.
[illi] / initialization.go
index 7f2a50a..45f6f6e 100644 (file)
@@ -21,7 +21,7 @@ import (
 
 
 
 
 
 
-// The caller is responsible for tracking the lifetime of the returned X
+// Note: The caller is responsible for tracking the lifetime of the returned X
 // connection and calling connection.Close() when appropriate.
 func connectToXServer() *xgb.Conn {
     connection, err := xgb.NewConn()
 // connection and calling connection.Close() when appropriate.
 func connectToXServer() *xgb.Conn {
     connection, err := xgb.NewConn()
@@ -33,7 +33,7 @@ func connectToXServer() *xgb.Conn {
 }
 
 func getAttachedScreens(conn *xgb.Conn) (screens []xinerama.ScreenInfo) {
 }
 
 func getAttachedScreens(conn *xgb.Conn) (screens []xinerama.ScreenInfo) {
-    // First, attempt to use xinerama to obtain screen information.
+    // Attempt to use xinerama to obtain screen information.
     err := xinerama.Init(conn)
     if err != nil {
         fmt.Fprintf(os.Stderr, "ILLI: Unable to initialize xinerama: %s\n", err.Error())
     err := xinerama.Init(conn)
     if err != nil {
         fmt.Fprintf(os.Stderr, "ILLI: Unable to initialize xinerama: %s\n", err.Error())
@@ -77,7 +77,7 @@ func getXRoot(conn *xgb.Conn) xproto.ScreenInfo {
 }
 
 func getKeyboardMap(conn *xgb.Conn) (keymap [256][]xproto.Keysym) { // TODO: Why 256?
 }
 
 func getKeyboardMap(conn *xgb.Conn) (keymap [256][]xproto.Keysym) { // TODO: Why 256?
-    const ( // TODO: WhyTF? How does the keymap work under the hood?
+    const ( // TODO: Why? How does the keymap work under the hood?
         loKey = 8
         hiKey = 255
     )
         loKey = 8
         hiKey = 255
     )