summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-01-11 17:17:10 +0200
committerTor Lillqvist <tml@collabora.com>2016-01-12 14:55:26 +0000
commit0ba752201dca6129cc6b4a19ec93eb369eb70890 (patch)
tree30f20f8a316af0a2672cefdf4f4a9cfd2787a18b /vcl/win
parent7a32b6f247b2cb92373bbce6fc2a314cb043e3bb (diff)
Re-work focus handling to use an idle handler
Gets rid of some flashing when using OpenGL. Change-Id: I1273b960725bf868e7340eac3f2bad2f20e73d91 Reviewed-on: https://gerrit.libreoffice.org/21390 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/window/salframe.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx
index 62883261dfe3..56bce3dc3b72 100644
--- a/vcl/win/window/salframe.cxx
+++ b/vcl/win/window/salframe.cxx
@@ -3031,7 +3031,7 @@ static long ImplHandleMouseMsg( HWND hWnd, UINT nMsg,
// hopefully we will not receive the corresponding button up before this
// button down arrives again
vcl::Window *pWin = pFrame->GetWindow();
- if( pWin && pWin->ImplGetWindowImpl()->mpFrameData->mnFocusId )
+ if( pWin && pWin->ImplGetWindowImpl()->mpFrameData->mpFocusIdle )
{
PostMessageW( hWnd, nMsg, wParam, lParam );
return 1;