summaryrefslogtreecommitdiff
path: root/desktop/source/lib
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2018-01-08 22:39:23 +0530
committerPranav Kant <pranavk@collabora.co.uk>2018-01-08 22:39:23 +0530
commit169b9264f4c8b6a64ea445766b3f7e18cfee1eb0 (patch)
tree09c1f581bf7740b5dc9c2f6dca657abaf15bf32d /desktop/source/lib
parent9b47049bfaa40ab5eea6f69ad0abc7b771ea8fe9 (diff)
lokdialog: Enable input before posting mouse events
Change-Id: Ib878544cf902aa3c12c59e4c7be6fff20d3a91a9
Diffstat (limited to 'desktop/source/lib')
-rw-r--r--desktop/source/lib/init.cxx5
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: