diff options
author | void0red <[email protected]> | 2024-06-08 23:15:57 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2024-06-08 17:15:57 +0200 |
commit | d724556b7ece61a5ff4eb764e6f47ec8089439bf (patch) | |
tree | 41b9dd0b6455a7142c36380c8766cd2c1d784552 | |
parent | 7789caad39f9c19553fe8baf779c0196938f645a (diff) | |
download | Hyprland-d724556b7ece61a5ff4eb764e6f47ec8089439bf.tar.gz Hyprland-d724556b7ece61a5ff4eb764e6f47ec8089439bf.zip |
input: fix virtual devices not updating capabilities (#6366)
Signed-off-by: void0red <[email protected]>
-rw-r--r-- | src/managers/input/InputManager.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index c12ac389..ff10f303 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -52,12 +52,16 @@ CInputManager::CInputManager() { g_pHyprRenderer->setCursorFromName(m_sCursorSurfaceInfo.name); }); - m_sListeners.newIdleInhibitor = PROTO::idleInhibit->events.newIdleInhibitor.registerListener([this](std::any data) { this->newIdleInhibitor(data); }); - m_sListeners.newVirtualKeyboard = - PROTO::virtualKeyboard->events.newKeyboard.registerListener([this](std::any data) { this->newVirtualKeyboard(std::any_cast<SP<CVirtualKeyboardV1Resource>>(data)); }); - m_sListeners.newVirtualMouse = - PROTO::virtualPointer->events.newPointer.registerListener([this](std::any data) { this->newVirtualMouse(std::any_cast<SP<CVirtualPointerV1Resource>>(data)); }); - m_sListeners.setCursor = g_pSeatManager->events.setCursor.registerListener([this](std::any d) { this->processMouseRequest(d); }); + m_sListeners.newIdleInhibitor = PROTO::idleInhibit->events.newIdleInhibitor.registerListener([this](std::any data) { this->newIdleInhibitor(data); }); + m_sListeners.newVirtualKeyboard = PROTO::virtualKeyboard->events.newKeyboard.registerListener([this](std::any data) { + this->newVirtualKeyboard(std::any_cast<SP<CVirtualKeyboardV1Resource>>(data)); + updateCapabilities(); + }); + m_sListeners.newVirtualMouse = PROTO::virtualPointer->events.newPointer.registerListener([this](std::any data) { + this->newVirtualMouse(std::any_cast<SP<CVirtualPointerV1Resource>>(data)); + updateCapabilities(); + }); + m_sListeners.setCursor = g_pSeatManager->events.setCursor.registerListener([this](std::any d) { this->processMouseRequest(d); }); m_sCursorSurfaceInfo.wlSurface = CWLSurface::create(); } |