Skip to content

Commit

Permalink
fix(wm): restore orphaned containers
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alex-ds13 committed Jan 23, 2025
1 parent 039e7f2 commit c9190e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions komorebi/src/monitor_reconciliator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ pub fn handle_notifications(wm: Arc<Mutex<WindowManager>>) -> color_eyre::Result

// Put the orphaned containers somewhere visible
for container in orphaned_containers {
container.restore();
focused_ws.add_container_to_back(container);
}

Expand Down

0 comments on commit c9190e1

Please sign in to comment.