mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-14 05:25:59 +01:00
Merge pull request #781 from Dickby/fix_left_handed
Fix getDeviceInt string arg "input:left_handed"
This commit is contained in:
commit
9153a81090
2 changed files with 3 additions and 3 deletions
|
@ -425,7 +425,7 @@ bool CKeybindManager::handleVT(xkb_keysym_t keysym) {
|
||||||
|
|
||||||
const auto PSESSION = wlr_backend_get_session(g_pCompositor->m_sWLRBackend);
|
const auto PSESSION = wlr_backend_get_session(g_pCompositor->m_sWLRBackend);
|
||||||
if (PSESSION) {
|
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)
|
if (PSESSION->vtnr == TTY)
|
||||||
return false; // don't do anything.
|
return false; // don't do anything.
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue