From 8372b3c3d1c3e8a787e174cc31dca55627b74b15 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 8 May 2015 22:13:08 +0100 Subject: PostUserEvent - first cut at keeping a VclPtr for posted UserEvents. This should eventually enable more certainty that they are still live by the time we emit the event later. Change-Id: I7c9eb4c000753d4efe8c59a9e13ef3e11c93b2fa --- vcl/source/window/mouse.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/source/window/mouse.cxx') diff --git a/vcl/source/window/mouse.cxx b/vcl/source/window/mouse.cxx index 72e684045a4a..bbcd0ad1ff6e 100644 --- a/vcl/source/window/mouse.cxx +++ b/vcl/source/window/mouse.cxx @@ -160,7 +160,7 @@ void Window::ImplCallMouseMove( sal_uInt16 nMouseCode, bool bModChanged ) void Window::ImplGenerateMouseMove() { if ( !mpWindowImpl->mpFrameData->mnMouseMoveId ) - mpWindowImpl->mpFrameData->mnMouseMoveId = Application::PostUserEvent( LINK( mpWindowImpl->mpFrameWindow, Window, ImplGenerateMouseMoveHdl ) ); + mpWindowImpl->mpFrameData->mnMouseMoveId = Application::PostUserEvent( LINK( mpWindowImpl->mpFrameWindow, Window, ImplGenerateMouseMoveHdl ), NULL, true ); } IMPL_LINK_NOARG(Window, ImplGenerateMouseMoveHdl) -- cgit