So it looks like the appilication windows aren't all children of the desktop window. Instead, the desktop is just some sort of another application window, invariably lying below all the others in the Z order.