diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-05 14:30:04 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-12-05 14:30:04 +0000 |
| commit | 20b91f58f8f8cc7cda7cca7e7683e4c5178f0479 (patch) | |
| tree | 96938ae615d2b30e062900d0e28f1be1cf69f3c9 /src/managers/input/InputManager.cpp | |
| parent | ac0e675f3b0bcd9f5c01f43b050d1da6d1215be0 (diff) | |
remove idiotic guard in processMouseDownNormal
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index b6fa3996..55935800 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -378,13 +378,7 @@ void CInputManager::setClickMode(eClickBehaviorMode mode) { } void CInputManager::processMouseDownNormal(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 processMouseDownNormal??"); - return; - } - + // notify the keybind manager static auto *const PPASSMOUSE = &g_pConfigManager->getConfigValuePtr("binds:pass_mouse_when_bound")->intValue; const auto PASS = g_pKeybindManager->onMouseEvent(e); |
