summaryrefslogtreecommitdiff
path: root/src/events/Layers.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-04-07 12:54:11 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-04-07 12:54:11 +0100
commitd8645cd148949c7ceaf516c1c9af0c2a88810e67 (patch)
tree698441f7a8c03636af47adc8ac419548781769ae /src/events/Layers.cpp
parentc9f7afbf782304fef1ca629a278ce8ef35fc1e3d (diff)
internal: release buttons on unmap
Diffstat (limited to 'src/events/Layers.cpp')
-rw-r--r--src/events/Layers.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/events/Layers.cpp b/src/events/Layers.cpp
index a7135953..ff31355e 100644
--- a/src/events/Layers.cpp
+++ b/src/events/Layers.cpp
@@ -218,6 +218,8 @@ void Events::listener_unmapLayerSurface(void* owner, void* data) {
// refocus if needed
if (WASLASTFOCUS) {
+ g_pInputManager->releaseAllMouseButtons();
+
Vector2D surfaceCoords;
SLayerSurface* pFoundLayerSurface = nullptr;
wlr_surface* foundSurface = nullptr;