From b42fcbe509f3b66f62a811b0e0af9ef62d05b568 Mon Sep 17 00:00:00 2001 From: alex-ds13 <145657253+alex-ds13@users.noreply.github.com> Date: Thu, 23 Jan 2025 17:51:40 +0000 Subject: [PATCH] fix(wm): restore orphaned containers When a monitor was disconnected the containers from the removed monitor were being moved to the primary monitor. However they weren't restored so containers that were on an unfocused workspace of the removed monitor would have been cloak and were getting added to the main monitor still cloaked creating ghost tiles. This commit fixes that. --- komorebi/src/monitor_reconciliator/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/komorebi/src/monitor_reconciliator/mod.rs b/komorebi/src/monitor_reconciliator/mod.rs index e8f3a000..7214fa01 100644 --- a/komorebi/src/monitor_reconciliator/mod.rs +++ b/komorebi/src/monitor_reconciliator/mod.rs @@ -337,6 +337,7 @@ pub fn handle_notifications(wm: Arc>) -> color_eyre::Result // Put the orphaned containers somewhere visible for container in orphaned_containers { + container.restore(); focused_ws.add_container_to_back(container); }