[Libreoffice-commits] core.git: vcl/source

Tamás Zolnai (via logerrit) logerrit at kemper.freedesktop.org
Tue Dec 10 13:14:53 UTC 2019


 vcl/source/window/floatwin.cxx |    6 +++++-
 vcl/source/window/winproc.cxx  |    3 ---
 2 files changed, 5 insertions(+), 4 deletions(-)

New commits:
commit 63e5dc938e1a907f92b88433d613d50c1573450b
Author:     Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Sat Jul 20 19:17:39 2019 +0200
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Tue Dec 10 14:14:04 2019 +0100

    lok: show tooltips on dialogs
    
    Change-Id: I40fca6ff13cc41ec9e1ec6bba48dce207e364c79
    Reviewed-on: https://gerrit.libreoffice.org/84715
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/84801
    Tested-by: Jenkins

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 ec1228b9fe69..62214fac59e4 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 ) ||


More information about the Libreoffice-commits mailing list