diff options
| author | Lenni <[email protected]> | 2021-03-07 09:26:04 +0100 |
|---|---|---|
| committer | Lenni <[email protected]> | 2021-03-07 09:26:04 +0100 |
| commit | c3652e28fc56c658e9011742567e52ee2f22ed98 (patch) | |
| tree | ab82fcd8abf3347b6d8f6afc3db5ddf2d7b4dbf9 | |
| parent | 257276cd70a8423fbe4283c6d7a6b99a0c3d23eb (diff) | |
rephrased weird comment
| -rw-r--r-- | examples/create-window/main.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/create-window/main.go b/examples/create-window/main.go index 9d1784c..c096a91 100644 --- a/examples/create-window/main.go +++ b/examples/create-window/main.go @@ -107,10 +107,10 @@ func main() { } // This is how accepting events work: - // The application checks what event we got - // (the event must be registered using either xproto.CreateWindow (see l.35) or - // xproto.ChangeWindowAttributes (see l.50)). - // and reacts to it accordingly. All events are defined in the xproto subpackage. + // The application checks what event we got and reacts to it + // accordingly. All events are defined in the xproto subpackage. + // To receive events, we have to first register it using + // either xproto.CreateWindow or xproto.ChangeWindowAttributes. switch ev.(type) { case xproto.KeyPressEvent: // See https://pkg.go.dev/github.com/jezek/xgb/xproto#KeyPressEvent |
