The work which factored TCLO handling out of lib/unity introduced a
regression whereby Unity_SetDesktopConfig no longer updated the
unity.virtDesktopArray state variable. This caused all subsequent
calls relating to virtual desktops, Unity_SetDesktopActive and
Unity_SetWindowDesktop, to fail.
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
Bool
Unity_SetDesktopConfig(const UnityVirtualDesktopArray *desktopConfig) // IN
{
- return UnityPlatformSetDesktopConfig(unity.up, desktopConfig);
+ if (UnityPlatformSetDesktopConfig(unity.up, desktopConfig)) {
+ unity.virtDesktopArray = *desktopConfig;
+ return TRUE;
+ }
+ return FALSE;
}