From 3e2200ed90b1e4451955f8391bfdc8dcb3d8c887 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Thu, 29 Dec 2022 11:52:46 +0100 Subject: [PATCH] get window under cursor in kill --- src/managers/input/InputManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index beb4f30a..e53dfaf7 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -413,7 +413,7 @@ void CInputManager::processMouseDownNormal(wlr_pointer_button_event* e) { void CInputManager::processMouseDownKill(wlr_pointer_button_event* e) { switch (e->state) { case WLR_BUTTON_PRESSED: { - const auto PWINDOW = g_pCompositor->m_pLastWindow; + const auto PWINDOW = g_pCompositor->vectorToWindowIdeal(getMouseCoordsInternal()); if (!PWINDOW) { Debug::log(ERR, "Cannot kill invalid window!");