summaryrefslogtreecommitdiff
path: root/examples/create-window
diff options
context:
space:
mode:
Diffstat (limited to 'examples/create-window')
-rw-r--r--examples/create-window/main.go8
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