summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorGökay Şatır <gokaysatir@collabora.com>2022-11-09 15:37:43 +0300
committerGökay ŞATIR <gokaysatir@collabora.com>2022-11-10 14:39:58 +0100
commite96352fca453d6a2f52f57c94cdd443ad3e4c0a0 (patch)
treef931a4cd7dd0e1ff91e76f481b07d874bbde315c /vcl
parentae460d8b75e1c68356d2dca8e5f6cb51067adc27 (diff)
Send unique window id along with other data to COOL.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com> 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 <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/dialog.cxx3
1 files changed, 3 insertions, 0 deletions
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<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());
@@ -1025,6 +1026,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);
}
}
@@ -1392,6 +1394,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);
}
}