LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 0003-use-updateCurrentState-when-touchpadReset-happens.patch of Package plasma5-desktop (Project home:alarrosa:branches:fix-shutdown)

From cc6638b0bd5be35ad7a9238beb759f7ef53ca51e Mon Sep 17 00:00:00 2001
From: Weng Xuetian <wengxt@gmail.com>
Date: Fri, 26 Feb 2016 21:08:28 -0800
Subject: [PATCH 3/3] use updateCurrentState when touchpadReset happens.

touchpadReset may emit when there is a new touchpad, use
updateCurrentState to make sure m_touchpadEnabled update correctly.

(cherry picked from commit f91a7c05afece3307c5d3ce83c44c024a95f9a67)
---
 kcms/touchpad/src/kded/kded.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kcms/touchpad/src/kded/kded.cpp b/kcms/touchpad/src/kded/kded.cpp
index 45aaf2f..4a7a2df 100644
--- a/kcms/touchpad/src/kded/kded.cpp
+++ b/kcms/touchpad/src/kded/kded.cpp
@@ -244,7 +244,7 @@ void touchpadApplySavedConfig();
 
 void TouchpadDisabler::handleReset()
 {
-    updateWorkingTouchpadFound();
+    updateCurrentState();
     if (!m_workingTouchpadFound) {
         return;
     }
-- 
2.6.2