summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Schäfer <ssa@openoffice.org>2002-05-13 09:49:42 +0000
committerStephan Schäfer <ssa@openoffice.org>2002-05-13 09:49:42 +0000
commit9951338c3dbf32b00845df48cdbd2b69f06b488e (patch)
tree9cd17e3253508db4e82672d67aee6dc17aa22b3f /vcl
parent4228e19c0655437a5f9d1e5f0ecf889f67e14a19 (diff)
#98888# making focus handling async again
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/winproc.cxx14
1 files changed, 4 insertions, 10 deletions
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index 5b88110a4f67..079992d2ac16 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: winproc.cxx,v $
*
- * $Revision: 1.53 $
+ * $Revision: 1.54 $
*
- * last change: $Author: ssa $ $Date: 2002-05-10 07:52:30 $
+ * last change: $Author: ssa $ $Date: 2002-05-13 10:49:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1633,10 +1633,7 @@ static void ImplHandleGetFocus( Window* pWindow )
if ( !pWindow->mpFrameData->mnFocusId )
{
pWindow->mpFrameData->mbStartFocusState = !pWindow->mpFrameData->mbHasFocus;
- // #98888 execute focus event synchronously
- // otherwise its nearly impossible to actively set the focus into another system window
- //Application::PostUserEvent( pWindow->mpFrameData->mnFocusId, LINK( pWindow, Window, ImplAsyncFocusHdl ) );
- pWindow->ImplAsyncFocusHdl( NULL );
+ Application::PostUserEvent( pWindow->mpFrameData->mnFocusId, LINK( pWindow, Window, ImplAsyncFocusHdl ) );
Window* pFocusWin = pWindow->mpFrameData->mpFocusWin;
if ( pFocusWin && pFocusWin->mpCursor )
pFocusWin->mpCursor->ImplShow();
@@ -1676,10 +1673,7 @@ static void ImplHandleLoseFocus( Window* pWindow )
if ( !pWindow->mpFrameData->mnFocusId )
{
pWindow->mpFrameData->mbStartFocusState = !pWindow->mpFrameData->mbHasFocus;
- // #98888 execute focus event synchronously
- // otherwise its nearly impossible to actively set the focus into another system window
- //Application::PostUserEvent( pWindow->mpFrameData->mnFocusId, LINK( pWindow, Window, ImplAsyncFocusHdl ) );
- pWindow->ImplAsyncFocusHdl( NULL );
+ Application::PostUserEvent( pWindow->mpFrameData->mnFocusId, LINK( pWindow, Window, ImplAsyncFocusHdl ) );
}
Window* pFocusWin = pWindow->mpFrameData->mpFocusWin;