Makes int32_t getwmdesktop() uint32_t as ws is elsewhere.

I don't think this should ever be a negative integer...
Changes int to size_t for patch to check_name for pedantry.