so that's why they checked if the new desktop was equal to the current on. unmap and map results in no window viewable