X-Git-Url: http://git.subgeniuskitty.com/illi/.git/blobdiff_plain/bbee7b5f33590e498927818c23b160466d4ee546..effccebef90bd43bdfc8dc3bdd59e0c7c346ecb2:/initialization.go diff --git a/initialization.go b/initialization.go index 7f2a50a..45f6f6e 100644 --- a/initialization.go +++ b/initialization.go @@ -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() @@ -33,7 +33,7 @@ func connectToXServer() *xgb.Conn { } 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()) @@ -77,7 +77,7 @@ func getXRoot(conn *xgb.Conn) xproto.ScreenInfo { } 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 )