diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2017-01-06 10:48:18 -0500 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2017-01-23 03:23:19 +0000 |
commit | 1c27286b9d5331634c073cd3e327bd941e61bbb6 (patch) | |
tree | a80286f43ddab83e79bfc3b1c720c36e20e80fb3 /desktop/inc | |
parent | d9cfbabc7fe13752daf02e2a8cfa38c72a30fb29 (diff) |
Lok: support for batch API calls
Mouse and keyboard operations typically
come in batches, and often each results in
tile invalidations and/or layout modifications.
Processing each input event on its own, then processing
the resulting output event is very costly and unecessary
when we know there is more of the same.
The new API adds support for batching such related
input events by disabling the output events generated
by Core until the batch is done. The client can
then process the resulting events, which will
be compressed and deduplicated.
Change-Id: Id381dab807186d010021a8778ee440074a739920
Reviewed-on: https://gerrit.libreoffice.org/33402
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'desktop/inc')
-rw-r--r-- | desktop/inc/lib/init.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/inc/lib/init.hxx b/desktop/inc/lib/init.hxx index 302f54de5391..bfe9954c3308 100644 --- a/desktop/inc/lib/init.hxx +++ b/desktop/inc/lib/init.hxx @@ -41,6 +41,10 @@ namespace desktop { void setEventLatch(const bool bEventLatch) { m_bEventLatch = bEventLatch; + if (!IsActive()) + { + Start(); + } } bool isEventLatchOn() const { return m_bEventLatch; } |