mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 17:25:59 +01:00
destroy LS-es on disconnected monitor
This commit is contained in:
parent
9ba93f4b0a
commit
a33ecec61e
1 changed files with 6 additions and 0 deletions
|
@ -192,6 +192,12 @@ void CMonitor::onDisconnect() {
|
|||
|
||||
hyprListener_monitorFrame.removeCallback();
|
||||
|
||||
for (size_t i = 0; i < 4; ++i) {
|
||||
for (auto& ls : m_aLayerSurfaceLists[i]) {
|
||||
wlr_layer_surface_v1_destroy(ls->layerSurface);
|
||||
}
|
||||
}
|
||||
|
||||
if (!BACKUPMON) {
|
||||
Debug::log(WARN, "Unplugged last monitor, entering an unsafe state. Good luck my friend.");
|
||||
|
||||
|
|
Loading…
Reference in a new issue