disable X window manger
remove listener from buffer when buffer is comitted to avoid double free's