From 42357a29e073481ed32001a3679b45f3d958aeaa Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 27 Jun 2024 10:41:22 +0200 Subject: [PATCH] app: reset Window when DestroyEvent is received Fixes: https://todo.sr.ht/~eliasnaur/gio/595 Signed-off-by: Elias Naur --- app/window.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/window.go b/app/window.go index 09fc8dae..766e9321 100644 --- a/app/window.go +++ b/app/window.go @@ -617,6 +617,7 @@ func (w *Window) processEvent(e event.Event) bool { case DestroyEvent: w.destroyGPU() w.driver = nil + w.basic = nil if q := w.timer.quit; q != nil { q <- struct{}{} <-q