summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-24 17:11:21 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-11-24 17:11:21 +0000
commit379597e78f512ff2d64a83ba3eb21b7a3444d4f9 (patch)
treef17052d0dbb4e8edcb19178cbfdca1acb7d2ebec /src/managers/input/InputManager.cpp
parentf6067816fb2bbd7dc9a00da6391cc6dcf5991035 (diff)
remove redundant strval_empty checks
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index 17a67020..7586247e 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -729,7 +729,7 @@ void CInputManager::setPointerConfigs() {
}
const auto SCROLLMETHOD = HASCONFIG ? g_pConfigManager->getDeviceString(devname, "scroll_method") : g_pConfigManager->getString("input:scroll_method");
- if (SCROLLMETHOD == "" || SCROLLMETHOD == STRVAL_EMPTY) {
+ if (SCROLLMETHOD == "") {
libinput_device_config_scroll_set_method(LIBINPUTDEV, libinput_device_config_scroll_get_default_method(LIBINPUTDEV));
} else if (SCROLLMETHOD == "no_scroll") {
libinput_device_config_scroll_set_method(LIBINPUTDEV, LIBINPUT_CONFIG_SCROLL_NO_SCROLL);
@@ -771,7 +771,7 @@ void CInputManager::setPointerConfigs() {
const auto ACCELPROFILE = HASCONFIG ? g_pConfigManager->getDeviceString(devname, "accel_profile") : g_pConfigManager->getString("input:accel_profile");
- if (ACCELPROFILE == "" || ACCELPROFILE == STRVAL_EMPTY) {
+ if (ACCELPROFILE == "") {
libinput_device_config_accel_set_profile(LIBINPUTDEV, libinput_device_config_accel_get_default_profile(LIBINPUTDEV));
} else if (ACCELPROFILE == "adaptive") {
libinput_device_config_accel_set_profile(LIBINPUTDEV, LIBINPUT_CONFIG_ACCEL_PROFILE_ADAPTIVE);