summaryrefslogtreecommitdiff
path: root/desktop/source/lib
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2019-04-27 13:37:52 +0100
committerJan Holesovsky <kendy@collabora.com>2019-05-06 11:19:33 +0200
commit33bfff357d68a521186a493b31b795b85bde897c (patch)
treefa332d9aebb75a77652de94f779541d3b8546684 /desktop/source/lib
parent4eef543e27baacffb23225af1a4d5adcb79cb9a1 (diff)
unipoll: emit user input-events & uno commands directly when in unipoll mode.
Rather than emitting asynchronously at idle. Change-Id: I6c72e9fad0b5587941e3a4a4d17d331a0d889942 Reviewed-on: https://gerrit.libreoffice.org/71770 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'desktop/source/lib')
-rw-r--r--desktop/source/lib/init.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index da88ae1b28f8..52b7f399c38b 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3004,10 +3004,13 @@ static void doc_postUnoCommand(LibreOfficeKitDocument* pThis, const char* pComma
std::vector<beans::PropertyValue> aPropertyValuesVector(jsonToPropertyValuesVector(pArguments));
- beans::PropertyValue aSynchronMode;
- aSynchronMode.Name = "SynchronMode";
- aSynchronMode.Value <<= false;
- aPropertyValuesVector.push_back(aSynchronMode);
+ if (!vcl::lok::isUnipoll())
+ {
+ beans::PropertyValue aSynchronMode;
+ aSynchronMode.Name = "SynchronMode";
+ aSynchronMode.Value <<= false;
+ aPropertyValuesVector.push_back(aSynchronMode);
+ }
int nView = SfxLokHelper::getView();
if (nView < 0)