mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 19:26:00 +01:00
guard pkeyboard in onMouseButton
This commit is contained in:
parent
e4e323a0df
commit
218675246f
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue