From 9bad62b85f179ad2c95c6e7f734768ef060a604b Mon Sep 17 00:00:00 2001 From: drendog <53359960+drendog@users.noreply.github.com> Date: Fri, 22 Mar 2024 02:28:50 +0100 Subject: [PATCH] layershell: release all mouse buttons before focus on new ls (#5219) --- src/events/Layers.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/events/Layers.cpp b/src/events/Layers.cpp index 4e61baa0..f4b52445 100644 --- a/src/events/Layers.cpp +++ b/src/events/Layers.cpp @@ -148,6 +148,7 @@ void Events::listener_mapLayerSurface(void* owner, void* data) { (!g_pCompositor->m_sSeat.mouse || !g_pInputManager->isConstrained()); if (GRABSFOCUS) { + g_pInputManager->releaseAllMouseButtons(); g_pCompositor->focusSurface(layersurface->layerSurface->surface); const auto LOCAL =