uifw/AvKon/src/aknindicatorpopupcontent.cpp
branchRCL_3
changeset 21 978afdc0236f
parent 20 d48ab3b357f1
--- a/uifw/AvKon/src/aknindicatorpopupcontent.cpp	Wed Sep 01 12:16:19 2010 +0100
+++ b/uifw/AvKon/src/aknindicatorpopupcontent.cpp	Tue Sep 14 21:48:24 2010 +0300
@@ -605,6 +605,7 @@
         switch ( aPointerEvent.iType )
             {
             case TPointerEvent::EButton1Down:
+                iOrdinal = DrawableWindow()->OrdinalPosition();
                 // Set flag that down was inside the popup.
                 iFlags |= EAknIndicatorPopupContentButton1Down;
                 iPreviousPressedDownItem = NULL;
@@ -676,6 +677,12 @@
                     iFlags &= ( ~EAknIndicatorPopupContentButton1Down );
                     iEnablePressedDownState = EFalse;
 
+                    if ( iOrdinal != DrawableWindow()->OrdinalPosition() )
+                        {
+                        Window().Invalidate( iPressedDownRect );
+                        break;
+                        }
+
                     if ( iBatteryPlugin &&
                          iBatteryArea.Contains( aPointerEvent.iPosition ) )
                         {