From 9f6bf0c0b81039760a00b3be7a80590cf2914206 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Sat, 29 Jul 2017 17:53:11 +0530 Subject: lokdialog: Forward mouse events to vcl; enable mouse move The current implementation works well - the mouse events are properly handled by the opened dialog changing the dialog states. However, since the uno commands (dialog IDs) are different from what is returned by LOK_CALLBACK_DIALOG_INVALIDATE, the invalidation doesn't instantaneously, so one have to make the dialog window out-of-focus and then again back to focus to trigger the paint and see the updated dialog state. The mouse coordinates are forwarded in pixels as of now. Enable mouse GDK Motion mask too for mouse move operation. Change-Id: Ia915f734e8cbf4586da2b70da5840fe1568b39bd --- sw/source/uibase/uno/unotxdoc.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 73bdc7e7ace1..782d5f7f952c 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3702,7 +3702,7 @@ void SwXTextDocument::postDialogMouseEvent(const vcl::DialogID& rDialogID, int n pDialog->LogicMouseButtonUp(aEvent); break; case LOK_MOUSEEVENT_MOUSEMOVE: - //pDialog->LogicMouseMove(aEvent); + pDialog->LogicMouseMove(aEvent); break; default: assert(false); -- cgit