mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-07 23:51:55 -07:00
more checks in pid gathering
This commit is contained in:
@@ -240,10 +240,8 @@ void CCompositor::cleanup() {
|
|||||||
|
|
||||||
// accumulate all PIDs for killing, also request closing.
|
// accumulate all PIDs for killing, also request closing.
|
||||||
for (auto& w : m_vWindows) {
|
for (auto& w : m_vWindows) {
|
||||||
if (w->m_bIsMapped || !w->m_bIsX11)
|
if (w->m_bIsMapped && !w->m_bHidden)
|
||||||
m_dProcessPIDsOnShutdown.push_back(w->getPID());
|
m_dProcessPIDsOnShutdown.push_back(w->getPID());
|
||||||
|
|
||||||
closeWindow(w.get());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// end threads
|
// end threads
|
||||||
|
Reference in New Issue
Block a user