shell: fix closing of xwayland windows