aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-06-29 00:23:02 +0200
committerVaxry <[email protected]>2024-06-29 00:23:02 +0200
commit9c5dd59d4b1927b7d88e8e3c2e260eb01d95794b (patch)
tree5c67a70c195c4eeeabced0cf654c3bb556d250ca /src/managers/input/InputManager.cpp
parentd16c6aa1db52a0ee60ca1f53a9aa9ed1a2537ff2 (diff)
downloadHyprland-9c5dd59d4b1927b7d88e8e3c2e260eb01d95794b.tar.gz
Hyprland-9c5dd59d4b1927b7d88e8e3c2e260eb01d95794b.zip
input: fix capabilities enum types passed
hyprland down to the seat protocol impl expects IHID capabilities, not WL_ ones ref #6702 #6196
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index 81a46f97..b3621520 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -1473,14 +1473,7 @@ void CInputManager::updateCapabilities() {
if (h.expired())
continue;
- auto cap = h->getCapabilities();
-
- if (cap & HID_INPUT_CAPABILITY_KEYBOARD)
- caps |= WL_SEAT_CAPABILITY_KEYBOARD;
- if (cap & HID_INPUT_CAPABILITY_POINTER)
- caps |= WL_SEAT_CAPABILITY_POINTER;
- if (cap & HID_INPUT_CAPABILITY_TOUCH)
- caps |= WL_SEAT_CAPABILITY_TOUCH;
+ caps |= h->getCapabilities();
}
g_pSeatManager->updateCapabilities(caps);