vcl/source/window/dialog.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 05a779e667b08b1b1d2622a56cb76702153d2454 Author: Gökay Şatır <gokaysa...@collabora.com> AuthorDate: Wed Nov 9 15:37:43 2022 +0300 Commit: Gökay ŞATIR <gokaysa...@collabora.com> CommitDate: Thu Nov 10 12:09:11 2022 +0100
Send unique window id along with other data to COOL. Signed-off-by: Gökay Şatır <gokaysa...@collabora.com> Change-Id: I9021c8218890906c0239f32503057262d7326fd4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142485 Tested-by: Jenkins diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index 60629222fd3c..b8d81a4b8130 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -766,6 +766,7 @@ void Dialog::StateChanged( StateChangedType nType ) std::vector<vcl::LOKPayloadItem> 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()); @@ -1032,6 +1033,7 @@ bool Dialog::ImplStartExecute() // otherwise, this should make sure that the window has the correct size. std::vector<vcl::LOKPayloadItem> aItems; aItems.emplace_back("size", GetSizePixel().toString()); + aItems.emplace_back("unique_id", this->get_id().toUtf8()); pNotifier->notifyWindow(GetLOKWindowId(), "size_changed", aItems); } } @@ -1400,6 +1402,7 @@ void Dialog::Resize() { std::vector<vcl::LOKPayloadItem> aItems; aItems.emplace_back("size", GetSizePixel().toString()); + aItems.emplace_back("unique_id", this->get_id().toUtf8()); pNotifier->notifyWindow(GetLOKWindowId(), "size_changed", aItems); } }