Make sure that the new NVDAObjects.objectInForeground returns the same object as in main. A part from being more correct, this also allows NVDA to find the statisBar in applications that it used to be able to find it in.
Specific changes:
*Window NVDAObject's kwargsFromSuper: if getForegroundWindow() can't give us a window, then use the desktop window.
*IAccessible NVDAObject's kwargsFromSuper: if relation is "foreground", then we should get the client IAccessible, not the window IAccessible -- same as relation "parent".