mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 07:01:57 -07:00
destroy LS-es on disconnected monitor
This commit is contained in:
@@ -192,6 +192,12 @@ void CMonitor::onDisconnect() {
|
|||||||
|
|
||||||
hyprListener_monitorFrame.removeCallback();
|
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) {
|
if (!BACKUPMON) {
|
||||||
Debug::log(WARN, "Unplugged last monitor, entering an unsafe state. Good luck my friend.");
|
Debug::log(WARN, "Unplugged last monitor, entering an unsafe state. Good luck my friend.");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user