summaryrefslogtreecommitdiff
path: root/src/events/Popups.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/Popups.cpp
parentc9f7afbf782304fef1ca629a278ce8ef35fc1e3d (diff)
internal: release buttons on unmap
Diffstat (limited to 'src/events/Popups.cpp')
-rw-r--r--src/events/Popups.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/events/Popups.cpp b/src/events/Popups.cpp
index b56d0792..2649abce 100644
--- a/src/events/Popups.cpp
+++ b/src/events/Popups.cpp
@@ -173,6 +173,9 @@ void Events::listener_unmapPopupXDG(void* owner, void* data) {
ASSERT(PPOPUP);
+ if (PPOPUP->popup->base->surface == g_pCompositor->m_pLastFocus)
+ g_pInputManager->releaseAllMouseButtons();
+
SubsurfaceTree::destroySurfaceTree(PPOPUP->pSurfaceTree);
int lx = 0, ly = 0;