code: func (w *Window) Detach() {
  	keybind.Detach(w.X, w.Id)
  	mousebind.Detach(w.X, w.Id)
  	xevent.Detach(w.X, w.Id)
  }
docs: // Detach will detach this window's event handlers from all xevent, keybind
  // and mousebind callbacks.