diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-10-24 00:14:42 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-10-24 00:14:42 +0100 |
| commit | c6a3092b45da325ee41e39a76fd527d04580a65e (patch) | |
| tree | 914f55896afb70c79efaf1a3f7b629ffaa696adf /src/Compositor.cpp | |
| parent | 10303259f7c6f3e64e74e9ca8a31d4223071d5f0 (diff) | |
more safety around shutting down and mouse movements
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 37e579cb..8e3ec390 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -241,6 +241,8 @@ void CCompositor::cleanup() { if (!m_sWLDisplay || m_bIsShuttingDown) return; + m_bIsShuttingDown = true; + m_pLastFocus = nullptr; m_pLastWindow = nullptr; @@ -256,8 +258,6 @@ void CCompositor::cleanup() { m_vWorkspaces.clear(); m_vWindows.clear(); - m_bIsShuttingDown = true; - for (auto& m : m_vMonitors) { g_pHyprOpenGL->destroyMonitorResources(m.get()); |
