Skip to content

Commit

Permalink
fix(borders): no redraws on floating win title change
Browse files Browse the repository at this point in the history
WIP
  • Loading branch information
LGUG2Z authored and alex-ds13 committed Oct 10, 2024
1 parent 7d8e2ad commit d68346a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions komorebi/src/border_manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,16 +373,20 @@ pub fn handle_notifications(wm: Arc<Mutex<WindowManager>>) -> color_eyre::Result
}

// Destroy any borders not associated with the focused workspace
let container_ids = ws
let mut container_and_floating_window_ids = ws
.containers()
.iter()
.map(|c| c.id().clone())
.collect::<Vec<_>>();

for w in ws.floating_windows() {
container_and_floating_window_ids.push(w.hwnd.to_string());
}

let mut to_remove = vec![];
for (id, border) in borders.iter() {
if borders_monitors.get(id).copied().unwrap_or_default() == monitor_idx
&& !container_ids.contains(id)
&& !container_and_floating_window_ids.contains(id)
{
border.destroy()?;
to_remove.push(id.clone());
Expand Down

0 comments on commit d68346a

Please sign in to comment.