aboutsummaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorfaiface <faiface@ksp.sk>2017-08-19 13:20:47 +0200
committerfaiface <faiface@ksp.sk>2017-08-19 13:20:47 +0200
commit0cfb38cfb3b42577dfd20c63387159d5cc9db7ee (patch)
tree3b0b129bc9a363a832776dcdac8d6d41854121bc /win
parentac43bf381088b451dc122df36c3bcac6a9e397e2 (diff)
downloadgui-0cfb38cfb3b42577dfd20c63387159d5cc9db7ee.zip
win: close is just event, doesn't close window
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")
})
}