diff options
| author | Lenni <[email protected]> | 2021-03-06 17:47:38 +0100 |
|---|---|---|
| committer | Lenni <[email protected]> | 2021-03-06 17:47:38 +0100 |
| commit | 35e3533c4edb11d08cc36fa9a524df38d7ab5f57 (patch) | |
| tree | 75e2c2d8421c92f82c4eb285524da269aadd137e /examples/create-window | |
| parent | 89052459e19439240a5f3a1d3e267650f0d0c554 (diff) | |
formatting
Diffstat (limited to 'examples/create-window')
| -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 9510f9c..ef7d98a 100644 --- a/examples/create-window/main.go +++ b/examples/create-window/main.go @@ -125,16 +125,16 @@ func main() { case xproto.DestroyNotifyEvent: // Depending on the user's desktop environment (especially // window manager), killing a window might close the - // client's X connection (e. g. the default Ubuntu + // client's X connection (e. g. the default Ubuntu // desktop environment). - // + // // If that's the case for your environment, closing this example's window // will also call the underlying Go program (because closing the X // connection gives a nil event and EOF error). - // + // // Consider how a single application might have multiple windows // (e.g. an open popup or dialog, ...) - // + // // With other DEs, the X connection will still stay open even after the // X window is closed. For these DEs (e.g. i3) we have to check whether // the WM sent us a DestroyNotifyEvent and close our program: |
