uiacceltk/hitchcock/goommonitor/src/goomwindowgrouplist.cpp
changeset 53 5ba07f7750a9
parent 40 dd05fdd05078
--- a/uiacceltk/hitchcock/goommonitor/src/goomwindowgrouplist.cpp	Mon Aug 02 12:09:20 2010 +0300
+++ b/uiacceltk/hitchcock/goommonitor/src/goomwindowgrouplist.cpp	Thu Sep 02 13:30:25 2010 +0300
@@ -241,23 +241,13 @@
     // Refresh window group list
     // get all window groups, with info about parents
     TInt numGroups = iWs.NumWindowGroups();
+    iWgIds.Reset();
     iWgIds.ReserveL(numGroups);
     User::LeaveIfError(iWs.WindowGroupList(&iWgIds));
     
     // Remove all child window groups, promote parents to foremost child position
     CollapseWindowGroupTree(inactiveSurfaces);
-/*    
-#ifdef SYMBIAN_GRAPHICS_WSERV_QT_EFFECTS
-    TWsEvent event;
-    event.SetType(KGoomMemoryLowEvent); // naive
 
-    for (TInt i = iLowOnMemWgs.Count()-1; i>=0; i--)
-        {
-        iWs.SendEventToWindowGroup(iLowOnMemWgs[i], event);
-        }
-        
-#endif    
-*/    
     // Note the current foreground window ID (if there is one)
     TBool oldForegroundWindowExists = EFalse;
 
@@ -292,6 +282,7 @@
         TUint secureId = AppId(index,ETrue);
         TBool found = 0;
         TInt i = 0;
+        //TRACES1("Checking WG ID : %d", iWgIds[index].iId); 
         //todo - do we really need to check this list , when we have all ids in inactiveSurfaces[]
         for(i = 0; i < processIds.Count(); i++)
             {
@@ -316,8 +307,7 @@
             }
         
         if(!found)
-            {
-            TRACES1("Checking WG ID : %d", iWgIds[index].iId);             
+            {            
             for(TInt ii = 0; ii < inactiveSurfaces.Count(); ii++)
                 {
                 if (iWgIds[index].iId == inactiveSurfaces[ii] )