Backend returns CanvasCloser
This commit is contained in:
@@ -49,9 +49,10 @@ func (this *Canvas) Push (window xproto.Window) {
|
||||
}
|
||||
|
||||
// Close frees this canvas from the X server.
|
||||
func (this *Canvas) Close () {
|
||||
func (this *Canvas) Close () error {
|
||||
this.assert()
|
||||
this.Image.Destroy()
|
||||
return nil
|
||||
}
|
||||
|
||||
func (this *Canvas) assert () {
|
||||
|
||||
Reference in New Issue
Block a user