equal
deleted
inserted
replaced
1 // Copyright (c) 1994-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1994-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
621 { |
621 { |
622 CEventQueue *queue = aWsClient->EventQueue(); |
622 CEventQueue *queue = aWsClient->EventQueue(); |
623 TWsEvent event; |
623 TWsEvent event; |
624 event.SetType(EEventDisplayChanged); |
624 event.SetType(EEventDisplayChanged); |
625 event.SetTimeNow(); |
625 event.SetTimeNow(); |
|
626 |
|
627 // fill in the handle otherwise CONE will discard the notification |
|
628 CWsObjectIx* clientObjList = aWsClient->ObjectIndex(); |
|
629 const TWsObject* ptr=clientObjList->FirstObject(); |
|
630 const TWsObject* end=ptr+clientObjList->Length(); |
|
631 while(++ptr<end) // first one should always have a NULL object |
|
632 { |
|
633 const CWsObject* obj=ptr->iObject; |
|
634 if (obj && obj->Type()==WS_HANDLE_GROUP_WINDOW) |
|
635 { |
|
636 event.SetHandle(ptr->iHandle); |
|
637 break; |
|
638 } |
|
639 } |
|
640 |
626 TWsDisplayChangedEvent* dispEvent = event.DisplayChanged(); |
641 TWsDisplayChangedEvent* dispEvent = event.DisplayChanged(); |
627 dispEvent->iDisplayNumber = aDisplayNumber; |
642 dispEvent->iDisplayNumber = aDisplayNumber; |
628 dispEvent->iConfigurationChangeId = aConfigurationChangeId; |
643 dispEvent->iConfigurationChangeId = aConfigurationChangeId; |
629 dispEvent->iResolutionListChangeId = aResolutionListChangeId; |
644 dispEvent->iResolutionListChangeId = aResolutionListChangeId; |
630 queue->WalkEventQueue(&OverrideDisplayChangedEvent, &event); |
645 queue->WalkEventQueue(&OverrideDisplayChangedEvent, &event); |