summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorOliver Braun <obr@openoffice.org>2001-09-24 07:45:08 +0000
committerOliver Braun <obr@openoffice.org>2001-09-24 07:45:08 +0000
commit8a2401604c541a817091596617c8bf5c7f7b7e39 (patch)
tree62f9f9b21c77464091c8ef276c41aefa99862e62 /vcl
parentdbf5abe2dde8bf542260ecc3afe1072487f16ea3 (diff)
#91689# Increment/DecrementLockCount
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/dndevdis.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/vcl/source/window/dndevdis.cxx b/vcl/source/window/dndevdis.cxx
index cd8d8146da79..46f02de6d1ce 100644
--- a/vcl/source/window/dndevdis.cxx
+++ b/vcl/source/window/dndevdis.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dndevdis.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: pb $ $Date: 2001-06-15 09:25:10 $
+ * last change: $Author: obr $ $Date: 2001-09-24 08:45:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -339,6 +339,9 @@ sal_Int32 DNDEventDispatcher::fireDragEnterEvent( Window *pWindow,
{
OClearableGuard aGuard( Application::GetSolarMutex() );
+ // set an UI lock
+ pWindow->IncrementLockCount();
+
// query DropTarget from window
Reference< XDropTarget > xDropTarget = pWindow->GetDropTarget();
@@ -408,6 +411,9 @@ sal_Int32 DNDEventDispatcher::fireDragExitEvent( Window *pWindow ) throw(Runtime
if( xDropTarget.is() )
n = static_cast < DNDListenerContainer * > ( xDropTarget.get() )->fireDragExitEvent();
+
+ // release UI lock
+ pWindow->DecrementLockCount();
}
return n;
@@ -474,6 +480,9 @@ sal_Int32 DNDEventDispatcher::fireDropEvent( Window *pWindow,
n = static_cast < DNDListenerContainer * > ( xDropTarget.get() )->fireDropEvent(
xContext, nDropAction, relLoc.X(), relLoc.Y(), nSourceActions, xTransferable );
}
+
+ // release UI lock
+ pWindow->DecrementLockCount();
}
return n;