From b60b52c5cfd726e100fde382144c5caaa87dc2d4 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Mon, 8 Aug 2022 22:46:11 +0200 Subject: [PATCH] fix movefocusto with null last --- src/managers/KeybindManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index d86afc2a..987e4309 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -736,6 +736,9 @@ void CKeybindManager::moveFocusTo(std::string args) { const auto PLASTWINDOW = g_pCompositor->m_pLastWindow; + if (!PLASTWINDOW) + return; + // remove constraints g_pCompositor->m_sSeat.mouse->constraintActive = false;