diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2016-08-24 11:07:09 +0200 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2016-08-27 17:32:07 +0000 |
commit | 666b7a2be95b8310fc98c7d02529dfd82d966be3 (patch) | |
tree | f257fba613b1e9c2d44d19d5f37a230b616b9a1b /src/input | |
parent | 2e7112a3f7dd51034365363a75a494b98e21b2f9 (diff) |
UpdateAxisActionJob: only perform job if device enabled
Change-Id: Ie5b29563f5e88df6cce14655a0e3fb35fc8de1fa
Task-number: QTBUG-55469
Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/backend/updateaxisactionjob.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input/backend/updateaxisactionjob.cpp b/src/input/backend/updateaxisactionjob.cpp index 0cbd325c9..bbd36228e 100644 --- a/src/input/backend/updateaxisactionjob.cpp +++ b/src/input/backend/updateaxisactionjob.cpp @@ -80,6 +80,10 @@ void UpdateAxisActionJob::run() // Note: we assume axis/action are not really shared: // there's no benefit in sharing those when it comes to computing LogicalDevice *device = m_handler->logicalDeviceManager()->data(m_handle); + + if (!device->isEnabled()) + return; + updateAction(device); updateAxis(device); } |