summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2022-08-16 16:15:43 +0200
committervaxerski <vaxry@vaxry.net>2022-08-16 16:15:43 +0200
commitea45c6bfe0388b7d49548538473ee80ab852cce7 (patch)
treecdee1fc8a94a6cfa2fa75d2966105c325d3f333e /src/managers/input/InputManager.cpp
parent6e2467cc24f8afb70a4aaad3841a7c41fbc568b5 (diff)
fix memory issue with hyprctl devices
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index c552910c..95b30587 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -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);