--- a/taskswitcher/taskswitcherui/taskswitcherapp/src/tsappui.cpp Tue Apr 27 16:26:12 2010 +0300
+++ b/taskswitcher/taskswitcherui/taskswitcherapp/src/tsappui.cpp Tue May 11 16:02:39 2010 +0300
@@ -34,6 +34,7 @@
#include <hal_data.h>
#include <akntranseffect.h>
#include <UikonInternalPSKeys.h>
+#include <apgwgnam.h>
// AknCapServer UID, used for P&S category
@@ -121,6 +122,9 @@
iWg = RWindowGroup(CCoeEnv::Static()->WsSession());
iWg.Construct((TUint32)&iWg, ETrue);
iWg.EnableScreenChangeEvents();
+ CApaWindowGroupName* rootWgName = CApaWindowGroupName::NewLC( iEikonEnv->WsSession(), iEikonEnv->RootWin().Identifier() );
+ rootWgName->SetWindowGroupName( iWg );
+ CleanupStack::PopAndDestroy( rootWgName );
// Create UI
iAppView = CTsAppView::NewL( ApplicationRect(), *iDeviceState, iWg );
@@ -756,7 +760,8 @@
TInt wgId = WgIdOfUnderlyingApp(EFalse);
if ( iForeground &&
wgId != iUnderAppWgId &&
- !iAppView->AppCloseInProgress(iUnderAppWgId) )
+ !iAppView->AppCloseInProgress(iUnderAppWgId) &&
+ !iAppView->WgOnTaskList(wgId) )
{
MoveAppToBackground( ENoneTransition );
}
@@ -835,4 +840,14 @@
return retVal;
}
+
+// -----------------------------------------------------------------------------
+// CTsAppUi::IsForeground
+// -----------------------------------------------------------------------------
+//
+TBool CTsAppUi::IsForeground() const
+ {
+ return iForeground;
+ }
+
// End of file