]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Unity: Fix SetDesktopConfig handling.
authorVMware, Inc <>
Thu, 18 Nov 2010 21:50:06 +0000 (13:50 -0800)
committerMarcelo Vanzin <mvanzin@vmware.com>
Thu, 18 Nov 2010 21:50:06 +0000 (13:50 -0800)
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>
open-vm-tools/services/plugins/unity/unitylib/unity.c

index 177b718279d8aae8ae7d9dc8661d0cf3f5c2f46f..6765d099f84283f71a885bc6a9c3311158440b18 100644 (file)
@@ -893,7 +893,11 @@ Unity_MoveResizeWindow(UnityWindowId window,      // IN: Window handle
 Bool
 Unity_SetDesktopConfig(const UnityVirtualDesktopArray *desktopConfig) // IN
 {
-   return UnityPlatformSetDesktopConfig(unity.up, desktopConfig);
+   if (UnityPlatformSetDesktopConfig(unity.up, desktopConfig)) {
+      unity.virtDesktopArray = *desktopConfig;
+      return TRUE;
+   }
+   return FALSE;
 }