From 859709f10a37d4c7896013e917fe00bbd1fe7ced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= Date: Sat, 29 Jul 2017 19:30:59 +0200 Subject: [PATCH] [libinput] Fix enumeral and non-enumeral type in conditional expression warning --- libinput/device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libinput/device.cpp b/libinput/device.cpp index 35df9c6287..b5a469d116 100644 --- a/libinput/device.cpp +++ b/libinput/device.cpp @@ -175,7 +175,7 @@ Device::Device(libinput_device *device, QObject *parent) , m_defaultScrollMethod(libinput_device_config_scroll_get_default_method(m_device)) , m_defaultScrollButton(libinput_device_config_scroll_get_default_button(m_device)) , m_disableWhileTypingEnabledByDefault(libinput_device_config_dwt_get_default_enabled(m_device)) - , m_disableWhileTyping(m_supportsDisableWhileTyping ? libinput_device_config_dwt_get_enabled(m_device) : false) + , m_disableWhileTyping(m_supportsDisableWhileTyping ? libinput_device_config_dwt_get_enabled(m_device) == LIBINPUT_CONFIG_DWT_ENABLED : false) , m_middleEmulation(libinput_device_config_middle_emulation_get_enabled(m_device) == LIBINPUT_CONFIG_MIDDLE_EMULATION_ENABLED) , m_leftHanded(m_supportsLeftHanded ? libinput_device_config_left_handed_get(m_device) : false) , m_naturalScroll(m_supportsNaturalScroll ? libinput_device_config_scroll_get_natural_scroll_enabled(m_device) : false)