diff options
| author | JS Deck <jsdeckerido@gmail.com> | 2025-09-20 12:57:39 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-20 17:57:39 +0200 |
| commit | 838439080a9feaac3386d694dc7f8463e41c51df (patch) | |
| tree | 11492db963560ea2016b089356fab0f61dca3b6a /src/devices/VirtualKeyboard.cpp | |
| parent | 6a88f2e8800d4540ecbbb0d5b3d7f85a05387300 (diff) | |
vkeyboard: update cached mods before IME; add share_states = 2 config option (#11720)
Diffstat (limited to 'src/devices/VirtualKeyboard.cpp')
| -rw-r--r-- | src/devices/VirtualKeyboard.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/devices/VirtualKeyboard.cpp b/src/devices/VirtualKeyboard.cpp index 97b7626a..2951f36a 100644 --- a/src/devices/VirtualKeyboard.cpp +++ b/src/devices/VirtualKeyboard.cpp @@ -44,8 +44,11 @@ CVirtualKeyboard::CVirtualKeyboard(SP<CVirtualKeyboardV1Resource> keeb_) : m_key m_keyboardEvents.keymap.emit(event); }); - m_deviceName = keeb_->m_name; - m_shareStates = g_pConfigManager->getDeviceInt(m_deviceName, "share_states", "input:virtualkeyboard:share_states"); + m_deviceName = keeb_->m_name; + + const auto SHARESTATES = g_pConfigManager->getDeviceInt(m_deviceName, "share_states", "input:virtualkeyboard:share_states"); + m_shareStates = SHARESTATES != 0; + m_shareStatesAuto = SHARESTATES == 2; } bool CVirtualKeyboard::isVirtual() { |
