summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-04-20 00:46:42 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-04-20 00:46:42 +0100
commitb15803510c67b7b89090c99f03781d9052c959f5 (patch)
tree6388eafa0f6efe63d6744f4dc367e4ffa33fc423 /src/Compositor.cpp
parentf914a5a06d75fcbdf53a03b820fcc8c0ff822b15 (diff)
input: improve mouse release conditions
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 2e67cbde..289fdafb 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -796,8 +796,6 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) {
}
if (!pWindow || !windowValidMapped(pWindow)) {
- g_pInputManager->releaseAllMouseButtons();
-
const auto PLASTWINDOW = m_pLastWindow;
m_pLastWindow = nullptr;
@@ -870,7 +868,6 @@ void CCompositor::focusWindow(CWindow* pWindow, wlr_surface* pSurface) {
// do pointer focus too
const auto POINTERLOCAL = g_pInputManager->getMouseCoordsInternal() - pWindow->m_vRealPosition.goalv();
- g_pInputManager->releaseAllMouseButtons();
wlr_seat_pointer_notify_enter(m_sSeat.seat, PWINDOWSURFACE, POINTERLOCAL.x, POINTERLOCAL.y);
updateWindowAnimatedDecorationValues(pWindow);