update Window API, add getXid, setDecorated, maximize, unmaximize