fix workspace flag
detect workspaces by proximity instead of alphabetically.