diff options
author | Philipp Lohmann <pl@openoffice.org> | 2001-06-29 14:06:02 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2001-06-29 14:06:02 +0000 |
commit | 8d552b0e156a41f4e3c277a0d4da7bf60245b8c8 (patch) | |
tree | cd4a79e48663b00b41bcda250506c285db505457 /dtrans | |
parent | 958f362bbcce388c35e4bc91e99ac02a38e82b67 (diff) |
#88809# have only one thread dispatching during drag
Diffstat (limited to 'dtrans')
-rw-r--r-- | dtrans/source/X11/X11_selection.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dtrans/source/X11/X11_selection.cxx b/dtrans/source/X11/X11_selection.cxx index 05e9009dd48a..46de74297c4d 100644 --- a/dtrans/source/X11/X11_selection.cxx +++ b/dtrans/source/X11/X11_selection.cxx @@ -2,9 +2,9 @@ * * $RCSfile: X11_selection.cxx,v $ * - * $Revision: 1.29 $ + * $Revision: 1.30 $ * - * last change: $Author: pl $ $Date: 2001-06-22 17:47:46 $ + * last change: $Author: pl $ $Date: 2001-06-29 15:06:02 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -2397,7 +2397,9 @@ void SelectionManager::dragDoDispatch() while( m_xDragSourceListener.is() && ( ! m_bDropSent || time(NULL)-m_nDropTimeout < 5 ) && osl_scheduleThread( m_aDragExecuteThread ) ) { osl_yieldThread(); - dispatchEvent( 200 ); + // let the thread in the run method do the dispatching + // just look occasionally here whether drop timed out or is completed + poll( NULL, 0, 200 ); } oslThread aThread = m_aDragExecuteThread; #ifdef DEBUG |