From f825b87c2a9976bd9bfef44063962983cda66040 Mon Sep 17 00:00:00 2001 From: Felix Dick Date: Wed, 5 Oct 2022 02:42:51 +0200 Subject: [PATCH 1/2] Fix compiler warnig comparing signed and unsigned integers. --- src/managers/KeybindManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 2d1e6304..337ce059 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -425,7 +425,7 @@ bool CKeybindManager::handleVT(xkb_keysym_t keysym) { const auto PSESSION = wlr_backend_get_session(g_pCompositor->m_sWLRBackend); if (PSESSION) { - const int TTY = keysym - XKB_KEY_XF86Switch_VT_1 + 1; + const unsigned int TTY = keysym - XKB_KEY_XF86Switch_VT_1 + 1; if (PSESSION->vtnr == TTY) return false; // don't do anything. From 6d46ed4011a91b17ef3b0b9134e21f53111648a4 Mon Sep 17 00:00:00 2001 From: Felix Dick Date: Wed, 5 Oct 2022 04:25:26 +0200 Subject: [PATCH 2/2] Fix getDeviceInt string arg "input:left_handed" --- src/managers/input/InputManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 56e03b8f..eef83a3d 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -692,7 +692,7 @@ void CInputManager::setMouseConfigs() { else libinput_device_config_click_set_method(LIBINPUTDEV, LIBINPUT_CONFIG_CLICK_METHOD_CLICKFINGER); - if ((HASCONFIG ? g_pConfigManager->getDeviceInt(devname, "left_handed") : g_pConfigManager->getInt("input:touchpad:left_handed")) == 0) + if ((HASCONFIG ? g_pConfigManager->getDeviceInt(devname, "left_handed") : g_pConfigManager->getInt("input:left_handed")) == 0) libinput_device_config_left_handed_set(LIBINPUTDEV, 0); else libinput_device_config_left_handed_set(LIBINPUTDEV, 1); @@ -1036,4 +1036,4 @@ void CInputManager::newSwitch(wlr_input_device* pDevice) { void CInputManager::destroySwitch(SSwitchDevice* pDevice) { m_lSwitches.remove(*pDevice); -} \ No newline at end of file +}