handle switching workspaces with no windows open