summaryrefslogtreecommitdiff
path: root/src/events/Layers.cpp
diff options
context:
space:
mode:
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;