Have you tried changing the game resolution? If DirectX isn't returning to the original resolution, maybe getting rid of that initial warning will help. Maybe try a lower resolution, or setting the game and desktop resolution the same.

A program like DesktopOK or Iconoid will let you save and restore the positions of your desktop icons.