From e96352fca453d6a2f52f57c94cdd443ad3e4c0a0 Mon Sep 17 00:00:00 2001 From: Gökay Şatır Date: Wed, 9 Nov 2022 15:37:43 +0300 Subject: Send unique window id along with other data to COOL. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gökay Şatır Change-Id: I9021c8218890906c0239f32503057262d7326fd4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142485 Tested-by: Jenkins Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142550 Tested-by: Jenkins CollaboraOffice --- vcl/source/window/dialog.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vcl') diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index 8b9e11cc35d0..0579b61a76ad 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -765,6 +765,7 @@ void Dialog::StateChanged( StateChangedType nType ) std::vector aItems; aItems.emplace_back("type", "dialog"); aItems.emplace_back("size", GetSizePixel().toString()); + aItems.emplace_back("unique_id", this->get_id().toUtf8()); if (!GetText().isEmpty()) aItems.emplace_back("title", GetText().toUtf8()); @@ -1025,6 +1026,7 @@ bool Dialog::ImplStartExecute() // otherwise, this should make sure that the window has the correct size. std::vector aItems; aItems.emplace_back("size", GetSizePixel().toString()); + aItems.emplace_back("unique_id", this->get_id().toUtf8()); pNotifier->notifyWindow(GetLOKWindowId(), "size_changed", aItems); } } @@ -1392,6 +1394,7 @@ void Dialog::Resize() { std::vector aItems; aItems.emplace_back("size", GetSizePixel().toString()); + aItems.emplace_back("unique_id", this->get_id().toUtf8()); pNotifier->notifyWindow(GetLOKWindowId(), "size_changed", aItems); } } -- cgit v1.2.3