desktop, not from the parent thread. Fixed a couple of bugs in the desktop name handling.
-Wmissing-declarations.