From e4c267292a8b983bf84929fdce01cd2b7513518e Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 3 Feb 2023 11:41:43 +0000 Subject: [PATCH] clear LSes at finish --- src/hyprpicker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hyprpicker.cpp b/src/hyprpicker.cpp index 55e5f30..4551c53 100644 --- a/src/hyprpicker.cpp +++ b/src/hyprpicker.cpp @@ -48,6 +48,8 @@ void CHyprpicker::finish(int code) { destroyBuffer(&ls->screenBuffer); } + m_vLayerSurfaces.clear(); + if (m_pWLDisplay) { wl_display_disconnect(m_pWLDisplay); m_pWLDisplay = nullptr;