mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 00:25:57 +01:00
input: fix capabilities enum types passed
hyprland down to the seat protocol impl expects IHID capabilities, not WL_ ones ref #6702 #6196
This commit is contained in:
parent
d16c6aa1db
commit
9c5dd59d4b
1 changed files with 1 additions and 8 deletions
|
@ -1473,14 +1473,7 @@ void CInputManager::updateCapabilities() {
|
||||||
if (h.expired())
|
if (h.expired())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
auto cap = h->getCapabilities();
|
caps |= 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g_pSeatManager->updateCapabilities(caps);
|
g_pSeatManager->updateCapabilities(caps);
|
||||||
|
|
Loading…
Reference in a new issue