diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx index 19c8ed1b5748..f52aafeac5ab 100644 --- a/vcl/source/window/floatwin.cxx +++ b/vcl/source/window/floatwin.cxx @@ -594,8 +594,11 @@ void FloatingWindow::LogicInvalidate(const tools::Rectangle* /*pRectangle*/) { if (VclPtr pParent = GetParentWithLOKNotifier()) { + std::vector aPayload; + const tools::Rectangle aRect(Point(0,0), Size(GetSizePixel().Width()+1, GetSizePixel().Height()+1)); + aPayload.push_back(std::make_pair(OString("rectangle"), aRect.toString())); const vcl::ILibreOfficeKitNotifier* pNotifier = pParent->GetLOKNotifier(); - pNotifier->notifyWindow(GetLOKWindowId(), "invalidate"); + pNotifier->notifyWindow(GetLOKWindowId(), "invalidate", aPayload); } } diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx index b4e814b158c1..d8243588496b 100644 --- a/vcl/source/window/paint.cxx +++ b/vcl/source/window/paint.cxx @@ -1198,6 +1198,11 @@ void Window::LogicInvalidate(const tools::Rectangle* pRectangle) std::vector aPayload; if (pRectangle) aPayload.push_back(std::make_pair(OString("rectangle"), pRectangle->toString())); + else + { + const tools::Rectangle aRect(Point(0, 0), GetSizePixel()); + aPayload.push_back(std::make_pair(OString("rectangle"), aRect.toString())); + } pNotifier->notifyWindow(GetLOKWindowId(), "invalidate", aPayload); }