mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 07:45:59 +01:00
reset focus on lock surface destroy
This commit is contained in:
parent
be2e4d9dd1
commit
b944386ca5
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,9 @@ static void handleSurfaceDestroy(void* owner, void* data) {
|
||||||
PSURFACE->hyprListener_destroy.removeCallback();
|
PSURFACE->hyprListener_destroy.removeCallback();
|
||||||
PSURFACE->hyprListener_map.removeCallback();
|
PSURFACE->hyprListener_map.removeCallback();
|
||||||
|
|
||||||
|
if (PSURFACE->pWlrLockSurface->surface == g_pCompositor->m_pLastFocus)
|
||||||
|
g_pCompositor->m_pLastFocus = nullptr;
|
||||||
|
|
||||||
g_pSessionLockManager->removeSessionLockSurface(PSURFACE);
|
g_pSessionLockManager->removeSessionLockSurface(PSURFACE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue