diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2018-01-08 22:39:23 +0530 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-21 10:27:34 +0100 |
commit | 65257b026c681bdb192f26ca2cb75716b5b23879 (patch) | |
tree | 5c054f4f51e793a55296554fb5a32a52b6196268 /desktop | |
parent | 8c72cc5bf4b814ba78adab373ce8efb31f09fa2e (diff) |
lokdialog: Enable input before posting mouse events
Change-Id: Ib878544cf902aa3c12c59e4c7be6fff20d3a91a9
(cherry picked from commit 169b9264f4c8b6a64ea445766b3f7e18cfee1eb0)
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index f8aebcfc8606..ae0a99b8424f 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2447,6 +2447,11 @@ static void doc_postWindowMouseEvent(LibreOfficeKitDocument* /*pThis*/, unsigned Point aPos(nX, nY); MouseEvent aEvent(aPos, nCount, MouseEventModifiers::SIMPLECLICK, nButtons, nModifier); + if (Dialog* pDialog = dynamic_cast<Dialog*>(pWindow.get())) + { + pDialog->EnableInput(); + } + switch (nType) { case LOK_MOUSEEVENT_MOUSEBUTTONDOWN: |