mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 12:46:00 +01:00
parent
3d09c6d526
commit
ed58cc4c31
1 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,10 @@ CSessionLockSurface::CSessionLockSurface(SP<CExtSessionLockSurfaceV1> resource_,
|
||||||
wlr_surface_unmap(pSurface);
|
wlr_surface_unmap(pSurface);
|
||||||
hyprListener_surfaceCommit.removeCallback();
|
hyprListener_surfaceCommit.removeCallback();
|
||||||
hyprListener_surfaceDestroy.removeCallback();
|
hyprListener_surfaceDestroy.removeCallback();
|
||||||
|
|
||||||
|
if (g_pCompositor->m_pLastFocus == pSurface)
|
||||||
|
g_pCompositor->m_pLastFocus = nullptr;
|
||||||
|
|
||||||
pSurface = nullptr;
|
pSurface = nullptr;
|
||||||
},
|
},
|
||||||
this, "SessionLockSurface");
|
this, "SessionLockSurface");
|
||||||
|
|
Loading…
Reference in a new issue