aboutsummaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
Diffstat (limited to 'win')
-rw-r--r--win/events.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/win/events.go b/win/events.go
index 95ef961..e7dbc31 100644
--- a/win/events.go
+++ b/win/events.go
@@ -35,8 +35,7 @@ func (w *Win) setUpEvents(events chan<- string) {
})
w.w.SetCloseCallback(func(_ *glfw.Window) {
- events <- mkEvent("wi", "close")
- w.close()
+ sendEvent(events, "wi", "close")
})
}