summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2006-07-10 15:37:37 +0000
committerOliver Bolte <obo@openoffice.org>2006-07-10 15:37:37 +0000
commit4e40405bc0b0df506d4ded31a9ecaa45ce42f061 (patch)
tree68aaa5725d6a0d69c15ee8ac4f7d0e607bcd039c /vcl
parente2e3e18e696bf538331850513a9c965cf72bfdce (diff)
INTEGRATION: CWS vcl60 (1.43.6); FILE MERGED
2006/06/29 12:09:12 pl 1.43.6.1: #i42221# allow for yield to dispatch one or all events
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/source/app/saldata.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/vcl/unx/source/app/saldata.cxx b/vcl/unx/source/app/saldata.cxx
index ba3cc2e72189..fa9b31fb1b08 100644
--- a/vcl/unx/source/app/saldata.cxx
+++ b/vcl/unx/source/app/saldata.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: saldata.cxx,v $
*
- * $Revision: 1.43 $
+ * $Revision: 1.44 $
*
- * last change: $Author: hr $ $Date: 2006-06-19 19:51:21 $
+ * last change: $Author: obo $ $Date: 2006-07-10 16:37:37 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -681,7 +681,7 @@ bool SalXLib::CheckTimeout( bool bExecuteTimers )
return bRet;
}
-void SalXLib::Yield( BOOL bWait )
+void SalXLib::Yield( bool bWait, bool bHandleAllCurrentEvents )
{
// check for timeouts here if you want to make screenshots
static char* p_prioritize_timer = getenv ("SAL_HIGHPRIORITY_REPAINT");
@@ -795,7 +795,8 @@ void SalXLib::Yield( BOOL bWait )
}
if ( FD_ISSET( nFD, &ReadFDS ) )
{
- if ( pEntry->IsEventQueued() )
+ int nMaxEvents = bHandleAllCurrentEvents ? 100 : 1;
+ for( int i = 0; pEntry->IsEventQueued() && i < nMaxEvents; i++ )
{
pEntry->HandleNextEvent();
// if a recursive call has done the job