summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-12-26 14:08:07 +0600
committerMichael Meeks <michael.meeks@collabora.com>2024-01-16 21:01:58 +0000
commit6a20e8ae6c7d60ea39df4e2308f57880d64b7229 (patch)
tree24729fb0455fd8dd4d1bcf23e6b12d50e96cb423 /sfx2
parent315867352d175b2f04ff54765424ae16057a4120 (diff)
Send tooltip text to LOK
Call vcl::Window::RequestHelp from LOKPostAsyncEvent for mouse movement. Introduce LOK_CALLBACK_TOOLTIP callback type, and send it from SwEditWin::RequestHelp. Intention is, that the tooltip is shown by client at the current mouse pointer position, which is hopefully not far away from the point that generated the mouse event. On the next movement, the client starts a timer to hide the tooltip. If the next tooltip message arrives, the tooltip would be updated in the new place. Alternatively, the payload could contain the coordinates from the HelpEvent. Change-Id: I8e96eb6e6983ad8d13b4c5d7be4d51ff3fd11893 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161302 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/lokhelper.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx
index 1df7a3b92d9a..f21457e1b16d 100644
--- a/sfx2/source/view/lokhelper.cxx
+++ b/sfx2/source/view/lokhelper.cxx
@@ -896,6 +896,9 @@ namespace
case VclEventId::WindowMouseMove:
pLOKEv->mpWindow->SetLastMousePos(pLOKEv->maMouseEvent.GetPosPixel());
pLOKEv->mpWindow->MouseMove(pLOKEv->maMouseEvent);
+ pLOKEv->mpWindow->RequestHelp(HelpEvent{
+ pLOKEv->mpWindow->OutputToScreenPixel(pLOKEv->maMouseEvent.GetPosPixel()),
+ HelpEventMode::QUICK }); // If needed, HelpEventMode should be taken from a config
break;
case VclEventId::ExtTextInput:
case VclEventId::EndExtTextInput: