Focus the correct window when unshowing the desktop
Make sure there's always a focused window, even if there is only one window
Fix focusing wrong window when current window is minimized.

To reproduce prior behavior:

Take 3 windows.

Focus 1st, then 2nd, then 3rd.

Then minimize 3rd.  1st window becomes focus - should be 2nd.