summaryrefslogtreecommitdiff
path: root/dtrans
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2001-12-21 12:18:30 +0000
committerPhilipp Lohmann <pl@openoffice.org>2001-12-21 12:18:30 +0000
commit55c426bf0e4f9a6f28da69f01770fc145353dadf (patch)
tree3cc11a94429120cf7ef841b1104af3d6bf91c907 /dtrans
parent0a41ef3206451be975bb578ef3d338f4e44a26e3 (diff)
#95862# guard was not cleared often enough
Diffstat (limited to 'dtrans')
-rw-r--r--dtrans/source/X11/X11_selection.cxx14
1 files changed, 10 insertions, 4 deletions
diff --git a/dtrans/source/X11/X11_selection.cxx b/dtrans/source/X11/X11_selection.cxx
index 2b5b0d7ad39f..411f2abbb9b4 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.44 $
+ * $Revision: 1.45 $
*
- * last change: $Author: pl $ $Date: 2001-12-12 19:05:41 $
+ * last change: $Author: pl $ $Date: 2001-12-21 13:18:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1930,14 +1930,14 @@ void SelectionManager::handleDragEvent( XEvent& rMessage )
Window root = rMessage.type == MotionNotify ? rMessage.xmotion.root : rMessage.xcrossing.root;
m_nDragTimestamp = rMessage.type == MotionNotify ? rMessage.xmotion.time : rMessage.xcrossing.time;
+ aGuard.clear();
if( rMessage.type == MotionNotify )
{
- aGuard.clear();
bForce = updateDragAction( rMessage.xmotion.state );
}
updateDragWindow( root_x, root_y, root );
-
aGuard.reset();
+
if( m_nCurrentProtocolVersion >= 0 && m_aDropProxy != None )
{
aGuard.clear();
@@ -2849,6 +2849,12 @@ void SelectionManager::handleXEvent( XEvent& rEvent )
void SelectionManager::dispatchEvent( int millisec )
{
+#ifdef DEBUG
+// int* pTest = *(int**)&m_aMutex;
+// if( pTest[8] != 0 )
+// abort();
+#endif
+
pollfd aPollFD;
XEvent event;