textinput/peninputarc/src/peninputserverapp/peninputserver.cpp
branchRCL_3
changeset 50 5a1685599b76
parent 46 bd83ceabce89
child 56 8152b1f1763a
--- a/textinput/peninputarc/src/peninputserverapp/peninputserver.cpp	Tue Sep 14 21:59:06 2010 +0300
+++ b/textinput/peninputarc/src/peninputserverapp/peninputserver.cpp	Wed Sep 15 12:34:44 2010 +0300
@@ -62,6 +62,14 @@
 // is used for both orientation in Pen Input server side code.
 const TInt KPenInputSrvPrtFsqUiId = 0x20026837;
 
+// The UID of the PopupClock application
+const TInt KBigClockUid =  0x2000FDC3;
+
+// The UID of the SreenSaver application
+const TInt KScreenSaverUid =  0x100056CF;
+
+// The UID of the AutoLock application
+const TInt KAutoLockUid = 0x100059B5;
 
 enum TActivationFlag
 	{
@@ -2575,7 +2583,13 @@
                         {			  
                         //fix for fast swap case
                         iInGlobalNotesState = EFalse;                        
-                        if(iPreNonGloebalNotesWndGrpId != focusApp.iUid )
+
+                        // Don't handle switching focus group 
+                        // when current focus of the application is screen saver, auto lock or popup clock.
+                        if ( iPreNonGloebalNotesWndGrpId != focusApp.iUid && 
+                             focusApp.iUid != KScreenSaverUid && 
+                             focusApp.iUid != KAutoLockUid && 
+                             focusApp.iUid != KBigClockUid )
                             {                            
                             iPreNonGloebalNotesWndGrpId = focusApp.iUid;
                             DeactivateSprite(ETrue);//hide pen ui immediately if switched to another application