uiacceltk/hitchcock/ServerCore/Src/alfappserver.cpp
branchRCL_3
changeset 10 7c5dd702d6d3
parent 9 3ac8bf5c5014
child 12 f93c875b566e
equal deleted inserted replaced
9:3ac8bf5c5014 10:7c5dd702d6d3
   295         // debugging trash
   295         // debugging trash
   296         // just bail out w/o changing the order of window groups
   296         // just bail out w/o changing the order of window groups
   297         return;       
   297         return;       
   298         }
   298         }
   299     
   299     
       
   300     TBool lastActiveDying = EFalse;
   300     if ( dying->ClientWindowGroup() == iLastActiveClientWg )
   301     if ( dying->ClientWindowGroup() == iLastActiveClientWg )
   301         {
   302         {
       
   303         lastActiveDying = ETrue;
   302         iLastActiveClientWg = KErrNotFound;
   304         iLastActiveClientWg = KErrNotFound;
   303         parentWg = dying->ParentWindowGroupId();
   305         parentWg = dying->ParentWindowGroupId();
   304         }
   306         }
   305 
   307 
   306     CAlfAppSrvSessionBase* newFocusSession = 0;
   308     CAlfAppSrvSessionBase* newFocusSession = 0;
   347                     }
   349                     }
   348                 }
   350                 }
   349             }
   351             }
   350         delete wgs;
   352         delete wgs;
   351         }
   353         }
   352     
   354     if( lastActiveDying || newFocusSession )
   353     TRAP_IGNORE(FocusedWindowGroupChangedL(newFocusSession, parentWg))
   355         {
       
   356         TRAP_IGNORE(FocusedWindowGroupChangedL(newFocusSession, parentWg));
       
   357         }
   354     }
   358     }
   355 
   359 
   356 
   360 
   357 // ---------------------------------------------------------------------------
   361 // ---------------------------------------------------------------------------
   358 // Static utility used in callback
   362 // Static utility used in callback