diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-07 12:54:11 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-07 12:54:11 +0100 |
| commit | d8645cd148949c7ceaf516c1c9af0c2a88810e67 (patch) | |
| tree | 698441f7a8c03636af47adc8ac419548781769ae /src/helpers/SubsurfaceTree.cpp | |
| parent | c9f7afbf782304fef1ca629a278ce8ef35fc1e3d (diff) | |
internal: release buttons on unmap
Diffstat (limited to 'src/helpers/SubsurfaceTree.cpp')
| -rw-r--r-- | src/helpers/SubsurfaceTree.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helpers/SubsurfaceTree.cpp b/src/helpers/SubsurfaceTree.cpp index 3d0ef32a..e6915525 100644 --- a/src/helpers/SubsurfaceTree.cpp +++ b/src/helpers/SubsurfaceTree.cpp @@ -184,6 +184,9 @@ void Events::listener_unmapSubsurface(void* owner, void* data) { Debug::log(LOG, "Subsurface %x unmapped", subsurface); + if (subsurface->pSubsurface->surface == g_pCompositor->m_pLastFocus) + g_pInputManager->releaseAllMouseButtons(); + if (subsurface->pChild) { const auto PNODE = subsurface->pChild; |
