diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2019-04-27 13:37:52 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-05-07 11:30:10 +0200 |
commit | 37a19f781d4e4f0fa1c6abf4679d222213bbddfb (patch) | |
tree | 206970f29cd6c9bd70246c578f328f8f34ce80e9 /desktop | |
parent | f1ed27eed68228edbab5eb63951a602263e4c3a7 (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/71809
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index c6fe2d8c2636..7e0507c1d73c 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2971,10 +2971,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) |