mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 17:25:59 +01:00
Fix one more SIGSEGV while exiting
This commit is contained in:
parent
2cd5059cf1
commit
f06d4fca27
1 changed files with 6 additions and 0 deletions
|
@ -144,6 +144,9 @@ void CCompositor::cleanupExit() {
|
||||||
if (!m_sWLDisplay)
|
if (!m_sWLDisplay)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
m_pLastFocus = nullptr;
|
||||||
|
m_pLastWindow = nullptr;
|
||||||
|
|
||||||
m_lWorkspaces.clear();
|
m_lWorkspaces.clear();
|
||||||
m_lWindows.clear();
|
m_lWindows.clear();
|
||||||
|
|
||||||
|
@ -620,6 +623,9 @@ bool CCompositor::doesSeatAcceptInput(wlr_surface* surface) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CCompositor::isWindowActive(CWindow* pWindow) {
|
bool CCompositor::isWindowActive(CWindow* pWindow) {
|
||||||
|
if (!m_pLastWindow && !m_pLastFocus)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (!windowValidMapped(pWindow))
|
if (!windowValidMapped(pWindow))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue