diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-05-01 02:33:36 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-05-01 02:33:36 +0100 |
| commit | ed58cc4c31c21e09ee780d0df818afe935181cd9 (patch) | |
| tree | d17e36978157f69d60be5b8b7e972ddc394a72bc /src/protocols/SessionLock.cpp | |
| parent | 3d09c6d526a37b3bfd81bdd6d7427272d1ba90ac (diff) | |
sessionLock: remove m_pLastFocus on destroy of surface
fixes #5822
Diffstat (limited to 'src/protocols/SessionLock.cpp')
| -rw-r--r-- | src/protocols/SessionLock.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/protocols/SessionLock.cpp b/src/protocols/SessionLock.cpp index ee7e201d..a33af3c5 100644 --- a/src/protocols/SessionLock.cpp +++ b/src/protocols/SessionLock.cpp @@ -51,6 +51,10 @@ CSessionLockSurface::CSessionLockSurface(SP<CExtSessionLockSurfaceV1> resource_, wlr_surface_unmap(pSurface); hyprListener_surfaceCommit.removeCallback(); hyprListener_surfaceDestroy.removeCallback(); + + if (g_pCompositor->m_pLastFocus == pSurface) + g_pCompositor->m_pLastFocus = nullptr; + pSurface = nullptr; }, this, "SessionLockSurface"); |
