mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-09-11 05:15:39 +03:00
destroy LS-es on disconnected monitor
This commit is contained in:
parent
9ba93f4b0a
commit
a33ecec61e
@ -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 New Issue
Block a user