summaryrefslogtreecommitdiff
path: root/toolkit/source/awt
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-04-11 16:05:17 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-04-11 16:05:17 +0000
commite5e5d9589a651a40fbfdce530df2d65b2af59b3f (patch)
treebfa23b24e5cadd24c53fff1661b47a9690421ec7 /toolkit/source/awt
parent4f7ee66c8420119f773f8bf44ff435297ee6f466 (diff)
INTEGRATION: CWS vcl07 (1.42.2.3.2); FILE MERGED
2003/03/28 10:40:41 ssa 1.42.2.3.2.1: #107480#, avoid multiple active frames in a hierarchy
Diffstat (limited to 'toolkit/source/awt')
-rw-r--r--toolkit/source/awt/vclxaccessiblecomponent.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/toolkit/source/awt/vclxaccessiblecomponent.cxx b/toolkit/source/awt/vclxaccessiblecomponent.cxx
index d484deef244a..af07e4dd9768 100644
--- a/toolkit/source/awt/vclxaccessiblecomponent.cxx
+++ b/toolkit/source/awt/vclxaccessiblecomponent.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: vclxaccessiblecomponent.cxx,v $
*
- * $Revision: 1.43 $
+ * $Revision: 1.44 $
*
- * last change: $Author: hr $ $Date: 2003-03-27 17:03:04 $
+ * last change: $Author: vg $ $Date: 2003-04-11 17:05:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -353,8 +353,13 @@ void VCLXAccessibleComponent::ProcessWindowEvent( const VclWindowEvent& rVclWind
*/
case VCLEVENT_WINDOW_ACTIVATE:
{
- aNewValue <<= accessibility::AccessibleStateType::ACTIVE;
- NotifyAccessibleEvent( accessibility::AccessibleEventId::ACCESSIBLE_STATE_EVENT, aOldValue, aNewValue );
+ // avoid notification if a child frame is already active
+ // only one frame may be active at a given time
+ if( !pWindow->HasActiveChildFrame() )
+ {
+ aNewValue <<= accessibility::AccessibleStateType::ACTIVE;
+ NotifyAccessibleEvent( accessibility::AccessibleEventId::ACCESSIBLE_STATE_EVENT, aOldValue, aNewValue );
+ }
}
break;
case VCLEVENT_WINDOW_DEACTIVATE: