mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-02 16:18:31 +00:00
Fix one more SIGSEGV while exiting
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user