uiacceltk/hitchcock/ServerCore/Src/alfappserver.cpp
changeset 25 f7f1ae431f74
parent 19 f5bac0badc7e
child 24 f93c875b566e
--- a/uiacceltk/hitchcock/ServerCore/Src/alfappserver.cpp	Fri May 14 16:46:13 2010 +0300
+++ b/uiacceltk/hitchcock/ServerCore/Src/alfappserver.cpp	Thu May 27 13:47:19 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));
+        }
     }