diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2024-04-16 18:24:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-28 16:15:16 +0200 |
commit | 47fbbd7c6b9ea6b4a20f05fdf8870cb9e125fb21 (patch) | |
tree | 634fe3c14fb8c3b3d7233e22ecc259900eb76dc6 /desktop | |
parent | 4149b79c0a04e80610a34087a8b874494e7075e3 (diff) |
lok: elide various unhelpful events during background save.
In particular TEXT_SELECTION and TABLE_SELECTED seem to be favorites,
but nothing good would come of getting these others either.
Change-Id: I1f014824452bffaeddb1dfaf6565542c3c7c9e91
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166158
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 95f1f2143ae53469417fcebc9b2020c34b53ff30)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172522
Tested-by: Jenkins
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 5241fd4c1673..9cc65b4b9e68 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -1704,6 +1704,29 @@ void CallbackFlushHandler::queue(const int type, CallbackData& aCallbackData) SAL_INFO("lok", "Queue: [" << type << "]: [" << aCallbackData.getPayload() << "] on " << m_queue1.size() << " entries."); + if (comphelper::LibreOfficeKit::isForkedChild()) + { + // In background mode - avoid any extraneous or confusing messages + switch (type) + { + case LOK_CALLBACK_INVALIDATE_TILES: + case LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR: + case LOK_CALLBACK_TEXT_SELECTION: + case LOK_CALLBACK_CURSOR_VISIBLE: + case LOK_CALLBACK_GRAPHIC_SELECTION: + case LOK_CALLBACK_TABLE_SELECTED: + case LOK_CALLBACK_SET_PART: + case LOK_CALLBACK_DOCUMENT_SIZE_CHANGED: + case LOK_CALLBACK_MOUSE_POINTER: + case LOK_CALLBACK_INVALIDATE_HEADER: + case LOK_CALLBACK_INVALIDATE_SHEET_GEOMETRY: + SAL_INFO("lok", "Elide event in background save mode"); + return; + default: + break; + } + } + bool bIsChartActive = false; bool bIsComment = false; if (type == LOK_CALLBACK_GRAPHIC_SELECTION) |