--- a/uiacceltk/hitchcock/ServerCore/Src/alfappserver.cpp Tue Apr 27 17:34:42 2010 +0300
+++ b/uiacceltk/hitchcock/ServerCore/Src/alfappserver.cpp Tue May 11 17:03:00 2010 +0300
@@ -297,8 +297,10 @@
return;
}
+ TBool lastActiveDying = EFalse;
if ( dying->ClientWindowGroup() == iLastActiveClientWg )
{
+ lastActiveDying = ETrue;
iLastActiveClientWg = KErrNotFound;
parentWg = dying->ParentWindowGroupId();
}
@@ -349,8 +351,10 @@
}
delete wgs;
}
-
- TRAP_IGNORE(FocusedWindowGroupChangedL(newFocusSession, parentWg))
+ if( lastActiveDying || newFocusSession )
+ {
+ TRAP_IGNORE(FocusedWindowGroupChangedL(newFocusSession, parentWg));
+ }
}