Fixed some of the focusing and desktop code.

  - The current_desktop variable is set properly (made an extern)
  - The deiconifying mechanism now deiconifies to the right desktop
  - Fixed the reformatter to remove the tabs that indent emits, and
  changes them to spaces