shell: fix a use after delete
shell: make setting of xwayland windows title work