Skip to content

Commit 42357a2

Browse files
committed
app: reset Window when DestroyEvent is received
Fixes: https://todo.sr.ht/~eliasnaur/gio/595 Signed-off-by: Elias Naur <[email protected]>
1 parent 8fb6d3d commit 42357a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/window.go

+1
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@ func (w *Window) processEvent(e event.Event) bool {
617617
case DestroyEvent:
618618
w.destroyGPU()
619619
w.driver = nil
620+
w.basic = nil
620621
if q := w.timer.quit; q != nil {
621622
q <- struct{}{}
622623
<-q

0 commit comments

Comments
 (0)