Fixed a desktop switching error.

The code tried to see if an unsigned type is < 0, which it never is.