diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-08-18 17:50:32 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-08-18 17:50:32 +0200 |
| commit | 9b62328b22fbd1ca20ac96cca0fcf21906d42aa6 (patch) | |
| tree | 2826b07a200608996769da014d0ee7c0471afe11 /src/debug/HyprCtl.cpp | |
| parent | c1a64a2b9dfcee3453f6e938ed62117a676994b0 (diff) | |
minor changes to the activelayout event
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 133508f0..2f5660df 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -321,7 +321,7 @@ R"#( { escapeJSONStrings(k.currentRules.variant).c_str(), escapeJSONStrings(k.currentRules.options).c_str(), escapeJSONStrings(KM).c_str(), - (&k == g_pInputManager->m_pActiveKeyboard ? "true" : "false") + (k.active ? "true" : "false") ); } @@ -388,7 +388,7 @@ R"#( { for (auto& k : g_pInputManager->m_lKeyboards) { 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\t\t\tmain: %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.c_str(), (&k == g_pInputManager->m_pActiveKeyboard ? "yes" : "no")); + 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\t\t\tmain: %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.c_str(), (k.active ? "yes" : "no")); } result += "\n\nTablets:\n"; |
