fix memory issue with hyprctl devices

This commit is contained in:
vaxerski
2022-08-16 16:15:43 +02:00
parent 6e2467cc24
commit ea45c6bfe0
2 changed files with 2 additions and 2 deletions

View File

@@ -894,7 +894,7 @@ std::string CInputManager::getActiveLayoutForKeyboard(SKeyboard* pKeyboard) {
const auto STATE = WLRKB->xkb_state;
const auto LAYOUTSNUM = xkb_keymap_num_layouts(KEYMAP);
for (auto i = 0; i < LAYOUTSNUM; ++i) {
for (uint32_t i = 0; i < LAYOUTSNUM; ++i) {
if (xkb_state_layout_index_is_active(STATE, i, XKB_STATE_LAYOUT_EFFECTIVE)) {
const auto LAYOUTNAME = xkb_keymap_layout_get_name(KEYMAP, i);