summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
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);