Hi All,

 The problem is located in metacity's test to verify if a workspace 
 as a role assigned or not.
 
 The problem is that when resuming the workspace's normal label libwnck assigns 
 the user's id as the role of the workspace instead of the empty string (which 
also 
 correspond to a the userid). Hence metacity thinks that the workspace as 
 a role and that only window in the trusted path can be displayed in that 
workspace 
 
 See tsol_meta_window_can_move_to_workspace, meta_window_visible_on_workspace 
and
 tsol_meta_workspace_has_roleas_role for details.
 
 The solution is to verify in tsol_meta_workspace_has_roleas_role 
 that the workspace role is assigned isn't the user's id.
 
 Code Changes (in trusted.c) :
 
 in gboolean tsol_meta_workspace_has_roleas_role (MetaWorkspace *ws): 
src/trusted.c
 
 +         struct passwd *pwd;
 +         pwd = getpwuid (getuid ());
 +         if (strcmp (role_list[ws_id], pwd->pw_name) == 0) /* role is normal 
us
 er */
 +           {
 +             g_strfreev (role_list);
 +             return FALSE;
 +           }


-- 
              Erwann Ch?ned?,
 Desktop Group, Sun Microsystems, Grenoble
 Phone  : +33 476 188 358       ext: 38358
[ I speak for myself, not for my employer ]



Reply via email to