X-Git-Url: https://git.subgeniuskitty.com/illi/.git/blobdiff_plain/19cbf0a1d58d81bdabfdd3a7c83e9f356ea836a5..ec873d07bbcd0a4d0d42a705aa383720963704cc:/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 )