mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 07:01:57 -07:00
guard pkeyboard in onMouseButton
This commit is contained in:
@@ -207,6 +207,11 @@ void CInputManager::onMouseButton(wlr_pointer_button_event* e) {
|
|||||||
|
|
||||||
const auto PKEYBOARD = wlr_seat_get_keyboard(g_pCompositor->m_sSeat.seat);
|
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) {
|
switch (e->state) {
|
||||||
case WLR_BUTTON_PRESSED:
|
case WLR_BUTTON_PRESSED:
|
||||||
if (!g_pCompositor->m_sSeat.mouse->currentConstraint)
|
if (!g_pCompositor->m_sSeat.mouse->currentConstraint)
|
||||||
|
Reference in New Issue
Block a user