From 04f7270236ddac1d02187d5a8c24ed70000c73a5 Mon Sep 17 00:00:00 2001 From: Juergen Funk Date: Mon, 14 Dec 2015 22:42:25 +0100 Subject: tdf#96119 Cannot select item with mouse in any combobox / drop down menu this commit has make the problem, the removing of the SALEVENT_MOUSEACTIVATE commit dd351dd728687cffe432ce0ec9367ceb80e097fb Author: Noel Grandin Date: Tue Nov 24 08:50:39 2015 +0200 loplugin:unusedfields in vcl/ and remove the unused SALEVENT_MOUSEACTIVATE stuff Without of there, when click in the opened list-box it send first the "PreNotify" with "MouseNotifyEvent::LOSEFOCUS" and that close the listbox. After that, it send the mouse-event to a closed window, that is the reason why the Listbox not get the mouse-click. With this patch, first send the mouse-click and then the "PreNotify" Change-Id: I5a09b1524335434f043d22bc71f7e38559fb1c0b Reviewed-on: https://gerrit.libreoffice.org/20708 Tested-by: Jenkins Reviewed-by: Noel Grandin Reviewed-on: https://gerrit.libreoffice.org/20734 Tested-by: Noel Grandin --- vcl/source/window/winproc.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vcl/source/window') diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx index 6e9f5bb0c76a..ef4cb769e18e 100644 --- a/vcl/source/window/winproc.cxx +++ b/vcl/source/window/winproc.cxx @@ -2437,6 +2437,9 @@ bool ImplWindowFrameProc( vcl::Window* _pWindow, SalFrame* /*pFrame*/, bRet = ImplHandleSalMouseButtonUp( pWindow, &aSalMouseEvent ); } break; + case SALEVENT_MOUSEACTIVATE: + bRet = false; + break; case SALEVENT_KEYINPUT: { SalKeyEvent const * pKeyEvt = static_cast(pEvent); -- cgit v1.2.1