app: don't run driver functions if there's no driver

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-06-04 17:39:39 +02:00
parent d95e6f2a15
commit e68ee35c86
+5
View File
@@ -354,6 +354,11 @@ func (c *callbacks) Event(e event.Event) {
}
func (w *Window) runFuncs(d wm.Driver) {
// Don't run driver functions if there's no driver.
if d == nil {
<-w.ack
return
}
// Flush pending runnnables.
loop:
for {