diff --git a/x/window.go b/x/window.go index 49eecd0..40ba170 100644 --- a/x/window.go +++ b/x/window.go @@ -361,7 +361,7 @@ func (this *window) reallocateCanvas () { if larger || smaller { if this.xCanvas != nil { - this.xCanvas.Destroy() + this.xCanvas.Close() } this.xCanvas = xcanvas.NewCanvasFrom(xgraphics.New ( this.backend.x,