Display and switch to desktop

This merges the parts to display the desktop in the window list (for more than one desktop) and switches to the one from the selected window.