diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-07-20 19:17:39 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-05-13 18:48:02 +0200 |
commit | 9ea29c4f7540ba2f9f23fa6d024d69578d36ad6a (patch) | |
tree | 0fc46da30792b2736184dbae4ab19a721ce93d32 | |
parent | 2fb35d84b3e5094cfb7595e56721ea24f577c4fe (diff) |
lok: show tooltips on dialogs
Change-Id: I40fca6ff13cc41ec9e1ec6bba48dce207e364c79
Reviewed-on: https://gerrit.libreoffice.org/84715
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/84801
Tested-by: Jenkins
-rw-r--r-- | vcl/source/window/floatwin.cxx | 6 | ||||
-rw-r--r-- | vcl/source/window/winproc.cxx | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx index baa3a46bc978..672eb6236fee 100644 --- a/vcl/source/window/floatwin.cxx +++ b/vcl/source/window/floatwin.cxx @@ -651,7 +651,11 @@ void FloatingWindow::StateChanged( StateChangedType nType ) SetLOKNotifier(pParent->GetLOKNotifier()); aItems.emplace_back("type", "child"); aItems.emplace_back("parentId", OString::number(pParent->GetLOKWindowId())); - aItems.emplace_back("position", mpImplData->maPos.toString()); // pixels + if (mbInPopupMode) + aItems.emplace_back("position", mpImplData->maPos.toString()); // pixels + else // mpImplData->maPos is not set + aItems.emplace_back("position", GetPosPixel().toString()); + } aItems.emplace_back("size", GetSizePixel().toString()); GetLOKNotifier()->notifyWindow(GetLOKWindowId(), "created", aItems); diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx index 424b8b6cdbfa..72cffe8411d3 100644 --- a/vcl/source/window/winproc.cxx +++ b/vcl/source/window/winproc.cxx @@ -157,9 +157,6 @@ static bool ImplHandleMouseFloatMode( vcl::Window* pChild, const Point& rMousePo static void ImplHandleMouseHelpRequest( vcl::Window* pChild, const Point& rMousePos ) { - if (comphelper::LibreOfficeKit::isActive()) - return; - ImplSVData* pSVData = ImplGetSVData(); if ( !pSVData->maHelpData.mpHelpWin || !( pSVData->maHelpData.mpHelpWin->IsWindowOrChild( pChild ) || |