diff options
author | vaxerski <[email protected]> | 2022-06-23 21:46:36 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-06-23 21:46:36 +0200 |
commit | 218675246f1a6b2292b8d4fb5672ba710e47ec9a (patch) | |
tree | dca5d3776f9a297979f0c5065d212a64e5cbad9b | |
parent | e4e323a0df852305cd5ee0922e2142319dc92c1f (diff) | |
download | Hyprland-218675246f1a6b2292b8d4fb5672ba710e47ec9a.tar.gz Hyprland-218675246f1a6b2292b8d4fb5672ba710e47ec9a.zip |
guard pkeyboard in onMouseButton
-rw-r--r-- | src/managers/input/InputManager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 79a13369..46d6338e 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -207,6 +207,11 @@ void CInputManager::onMouseButton(wlr_pointer_button_event* e) { const auto PKEYBOARD = wlr_seat_get_keyboard(g_pCompositor->m_sSeat.seat); + if (!PKEYBOARD) { // ??? + Debug::log(ERR, "No active keyboard in onMouseButton??"); + return; + } + switch (e->state) { case WLR_BUTTON_PRESSED: if (!g_pCompositor->m_sSeat.mouse->currentConstraint) |