summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorStephan Schäfer <ssa@openoffice.org>2002-10-16 10:20:18 +0000
committerStephan Schäfer <ssa@openoffice.org>2002-10-16 10:20:18 +0000
commitf855c07d8ae227b51590a1ac5e9979a06205d73f (patch)
tree9289f3849b762286dc94d52667785f98140781da /vcl/win
parent1cb1b2862debc2a63ca2f671c61c3fcf85e2f2a0 (diff)
#103168# repost button message if frame has not the focus yet
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/source/window/salframe.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index 8be65b1cf682..26a073ba3bab 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: salframe.cxx,v $
*
- * $Revision: 1.70 $
+ * $Revision: 1.71 $
*
- * last change: $Author: ssa $ $Date: 2002-10-14 16:29:19 $
+ * last change: $Author: ssa $ $Date: 2002-10-16 11:20:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2809,6 +2809,18 @@ static long ImplHandleMouseMsg( HWND hWnd, UINT nMsg,
if ( !pFrame )
return 0;
+ if( nMsg == WM_LBUTTONDOWN || nMsg == WM_MBUTTONDOWN || nMsg == WM_RBUTTONDOWN )
+ {
+ // #103168# post again if async focus has not arrived yet
+ // hopefully we will not receive the corresponding button up before this
+ // button down arrives again
+ Window *pWin = (Window*) pFrame->maFrameData.mpInst;
+ if( pWin && pWin->mpFrameData->mnFocusId )
+ {
+ ImplPostMessage( hWnd, nMsg, wParam, lParam );
+ return 1;
+ }
+ }
SalMouseEvent aMouseEvt;
long nRet;
USHORT nEvent;