diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-07-29 17:53:11 +0530 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-11-15 17:07:09 +0100 |
commit | 80bd29066be627d5c1cccfe04cdd4e163c76cc11 (patch) | |
tree | c78b5a980fcc719464ba100cf0046a11db833dbb /sw | |
parent | bd54b582bb5ec491fcb67e7f7b062f8a8ac64faf (diff) |
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
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index c9e50c8e4cd0..c3c13a8c740d 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3774,7 +3774,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); |