mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 18:05:59 +01:00
clear ls lists on monitor disconnect
This commit is contained in:
parent
8dd88d901d
commit
b9be405d32
1 changed files with 4 additions and 0 deletions
|
@ -163,6 +163,10 @@ void CMonitor::onDisconnect() {
|
|||
|
||||
wlr_output_commit(output);
|
||||
|
||||
for (auto& lsl : m_aLayerSurfaceLists) {
|
||||
lsl.clear();
|
||||
}
|
||||
|
||||
g_pCompositor->m_vWorkspaces.erase(std::remove_if(g_pCompositor->m_vWorkspaces.begin(), g_pCompositor->m_vWorkspaces.end(), [&](std::unique_ptr<CWorkspace>& el) { return el->m_iMonitorID == ID; }));
|
||||
|
||||
Debug::log(LOG, "Removed monitor %s!", szName.c_str());
|
||||
|
|
Loading…
Reference in a new issue