summaryrefslogtreecommitdiff
path: root/vcl/source/window/syschild.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-01-12 17:44:52 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-01-12 17:44:52 +0100
commite24ebfabf3dbcecaa52dba62397c4803571e5f81 (patch)
tree6124ea680e4b0e8b3ded47819fca9bef361380a8 /vcl/source/window/syschild.cxx
parent7ec5ba47783ac8b2d0141109d0efe6b20b363ced (diff)
Revert "Re-work focus handling to use an idle handler"
This reverts commit 0ba752201dca6129cc6b4a19ec93eb369eb70890. It breaks CppunitTest_desktop_lib on Linux.
Diffstat (limited to 'vcl/source/window/syschild.cxx')
-rw-r--r--vcl/source/window/syschild.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/vcl/source/window/syschild.cxx b/vcl/source/window/syschild.cxx
index 7a007a96cc62..d0c8e8ca375d 100644
--- a/vcl/source/window/syschild.cxx
+++ b/vcl/source/window/syschild.cxx
@@ -79,13 +79,10 @@ long ImplSysChildProc( void* pInst, SalObject* /* pObject */,
// trigger a LoseFocus which matches the status
// of the window with matching Activate-Status
pWindow->ImplGetFrameData()->mbSysObjFocus = false;
- if ( !pWindow->ImplGetFrameData()->mpFocusIdle )
+ if ( !pWindow->ImplGetFrameData()->mnFocusId )
{
pWindow->ImplGetFrameData()->mbStartFocusState = true;
- pWindow->ImplGetFrameData()->mpFocusIdle = new Idle("loseFocus");
- pWindow->ImplGetFrameData()->mpFocusIdle->SetIdleHdl(LINK( pWindow->ImplGetFrameWindow(), vcl::Window, ImplAsyncFocusHdl ));
- pWindow->ImplGetFrameData()->mpFocusIdle->SetPriority(SchedulerPriority::LOW);
- pWindow->ImplGetFrameData()->mpFocusIdle->Start();
+ pWindow->ImplGetFrameData()->mnFocusId = Application::PostUserEvent( LINK( pWindow->ImplGetFrameWindow(), vcl::Window, ImplAsyncFocusHdl ), nullptr, true );
}
break;