summaryrefslogtreecommitdiff
path: root/src/events/Layers.cpp
diff options
context:
space:
mode:
authordrendog <53359960+drendog@users.noreply.github.com>2024-03-22 02:28:50 +0100
committerGitHub <noreply@github.com>2024-03-22 01:28:50 +0000
commit9bad62b85f179ad2c95c6e7f734768ef060a604b (patch)
tree0de0777ce66bf2fd1db900b734e22983d0c5b1e5 /src/events/Layers.cpp
parenta94b902bef5eef3a4891726d51415c5d2e3391e3 (diff)
layershell: release all mouse buttons before focus on new ls (#5219)
Diffstat (limited to 'src/events/Layers.cpp')
-rw-r--r--src/events/Layers.cpp1
1 files changed, 1 insertions, 0 deletions
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 =