diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-08-16 16:10:20 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-08-16 16:10:20 +0200 |
| commit | 6e2467cc24f8afb70a4aaad3841a7c41fbc568b5 (patch) | |
| tree | 2869fe6b3ff52a35c09593f446d5bd8a09c68692 /src/debug/HyprCtl.cpp | |
| parent | 454d0d3f9f6b8f68a6bb59463ae3227f7ddce691 (diff) | |
fix active keymap in hyprctl devices
Diffstat (limited to 'src/debug/HyprCtl.cpp')
| -rw-r--r-- | src/debug/HyprCtl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 21f4e23d..bee5ce79 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -300,7 +300,7 @@ R"#( { result += "\"keyboards\": [\n"; for (auto& k : g_pInputManager->m_lKeyboards) { - const auto KM = xkb_keymap_layout_get_name(wlr_keyboard_from_input_device(k.keyboard)->keymap, 0); + const auto KM = g_pInputManager->getActiveLayoutForKeyboard(&k); result += getFormat( R"#( { "address": "0x%x", @@ -385,7 +385,7 @@ R"#( { result += "\n\nKeyboards:\n"; for (auto& k : g_pInputManager->m_lKeyboards) { - const auto KM = xkb_keymap_layout_get_name(wlr_keyboard_from_input_device(k.keyboard)->keymap, 0); + const auto KM = g_pInputManager->getActiveLayoutForKeyboard(&k); result += getFormat("\tKeyboard at %x:\n\t\t%s\n\t\t\trules: r \"%s\", m \"%s\", l \"%s\", v \"%s\", o \"%s\"\n\t\t\tactive keymap: %s\n", &k, k.keyboard->name, k.currentRules.rules.c_str(), k.currentRules.model.c_str(), k.currentRules.layout.c_str(), k.currentRules.variant.c_str(), k.currentRules.options.c_str(), KM); } |
