mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 23:21:57 -07:00
Fix getDeviceInt string arg "input:left_handed"
This commit is contained in:
@@ -692,7 +692,7 @@ void CInputManager::setMouseConfigs() {
|
|||||||
else
|
else
|
||||||
libinput_device_config_click_set_method(LIBINPUTDEV, LIBINPUT_CONFIG_CLICK_METHOD_CLICKFINGER);
|
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);
|
libinput_device_config_left_handed_set(LIBINPUTDEV, 0);
|
||||||
else
|
else
|
||||||
libinput_device_config_left_handed_set(LIBINPUTDEV, 1);
|
libinput_device_config_left_handed_set(LIBINPUTDEV, 1);
|
||||||
@@ -1036,4 +1036,4 @@ void CInputManager::newSwitch(wlr_input_device* pDevice) {
|
|||||||
|
|
||||||
void CInputManager::destroySwitch(SSwitchDevice* pDevice) {
|
void CInputManager::destroySwitch(SSwitchDevice* pDevice) {
|
||||||
m_lSwitches.remove(*pDevice);
|
m_lSwitches.remove(*pDevice);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user