diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2008-02-18 13:45:50 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2008-02-18 13:45:50 +0000 |
commit | 2846f8f410b9f0878a14225f2162ef64e699b1c2 (patch) | |
tree | d8228d4ab5ea99bdddc8541914e3d7115a9d2854 /svtools/source/misc/transfer.cxx | |
parent | aa2c8b407621e6486a58976cdde809ee0661ea16 (diff) |
INTEGRATION: CWS macosxdnd (1.78.22); FILE MERGED
2007/11/13 12:15:59 tra 1.78.22.2: RESYNC: (1.78-1.79); FILE MERGED
2007/11/13 10:44:31 tra 1.78.22.1: #i79620#do not release Solar mutex in StartDrag method because we have to excute 'XDragSource::startDrag' synchronously in the main thread otherwise we would not get any drag system events
Diffstat (limited to 'svtools/source/misc/transfer.cxx')
-rw-r--r-- | svtools/source/misc/transfer.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/svtools/source/misc/transfer.cxx b/svtools/source/misc/transfer.cxx index c59bb1edb429..f262395ebe10 100644 --- a/svtools/source/misc/transfer.cxx +++ b/svtools/source/misc/transfer.cxx @@ -4,9 +4,9 @@ * * $RCSfile: transfer.cxx,v $ * - * $Revision: 1.79 $ + * $Revision: 1.80 $ * - * last change: $Author: hr $ $Date: 2007-09-26 14:33:08 $ + * last change: $Author: rt $ $Date: 2008-02-18 14:45:50 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1030,7 +1030,13 @@ void TransferableHelper::StartDrag( Window* pWindow, sal_Int8 nDnDSourceActions, const Point aPt( pWindow->GetPointerPosPixel() ); + // On Mac OS X we are forced to execute 'startDrag' synchronously + // contrary to the XDragSource interface specification because + // we can receive drag events from the system only in the main + // thread +#if !defined(QUARTZ) const sal_uInt32 nRef = Application::ReleaseSolarMutex(); +#endif try { @@ -1046,7 +1052,10 @@ void TransferableHelper::StartDrag( Window* pWindow, sal_Int8 nDnDSourceActions, { } + // See above for the reason of this define +#if !defined(QUARTZ) Application::AcquireSolarMutex( nRef ); +#endif } } |