239 } |
239 } |
240 } |
240 } |
241 // Refresh window group list |
241 // Refresh window group list |
242 // get all window groups, with info about parents |
242 // get all window groups, with info about parents |
243 TInt numGroups = iWs.NumWindowGroups(); |
243 TInt numGroups = iWs.NumWindowGroups(); |
|
244 iWgIds.Reset(); |
244 iWgIds.ReserveL(numGroups); |
245 iWgIds.ReserveL(numGroups); |
245 User::LeaveIfError(iWs.WindowGroupList(&iWgIds)); |
246 User::LeaveIfError(iWs.WindowGroupList(&iWgIds)); |
246 |
247 |
247 // Remove all child window groups, promote parents to foremost child position |
248 // Remove all child window groups, promote parents to foremost child position |
248 CollapseWindowGroupTree(inactiveSurfaces); |
249 CollapseWindowGroupTree(inactiveSurfaces); |
249 /* |
250 |
250 #ifdef SYMBIAN_GRAPHICS_WSERV_QT_EFFECTS |
|
251 TWsEvent event; |
|
252 event.SetType(KGoomMemoryLowEvent); // naive |
|
253 |
|
254 for (TInt i = iLowOnMemWgs.Count()-1; i>=0; i--) |
|
255 { |
|
256 iWs.SendEventToWindowGroup(iLowOnMemWgs[i], event); |
|
257 } |
|
258 |
|
259 #endif |
|
260 */ |
|
261 // Note the current foreground window ID (if there is one) |
251 // Note the current foreground window ID (if there is one) |
262 TBool oldForegroundWindowExists = EFalse; |
252 TBool oldForegroundWindowExists = EFalse; |
263 |
253 |
264 TInt oldForegroundWindowId; |
254 TInt oldForegroundWindowId; |
265 if (iWgIds.Count() > 0) |
255 if (iWgIds.Count() > 0) |
290 { |
280 { |
291 //Remove if process is not in list of processes using gfx mem |
281 //Remove if process is not in list of processes using gfx mem |
292 TUint secureId = AppId(index,ETrue); |
282 TUint secureId = AppId(index,ETrue); |
293 TBool found = 0; |
283 TBool found = 0; |
294 TInt i = 0; |
284 TInt i = 0; |
|
285 //TRACES1("Checking WG ID : %d", iWgIds[index].iId); |
295 //todo - do we really need to check this list , when we have all ids in inactiveSurfaces[] |
286 //todo - do we really need to check this list , when we have all ids in inactiveSurfaces[] |
296 for(i = 0; i < processIds.Count(); i++) |
287 for(i = 0; i < processIds.Count(); i++) |
297 { |
288 { |
298 RProcess process; |
289 RProcess process; |
299 TInt er = process.Open(processIds[i]); |
290 TInt er = process.Open(processIds[i]); |