mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-25 10:08:33 +02:00
fix(borders): no redraws on floating win title change
WIP
This commit is contained in:
@@ -373,16 +373,20 @@ pub fn handle_notifications(wm: Arc<Mutex<WindowManager>>) -> color_eyre::Result
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Destroy any borders not associated with the focused workspace
|
// Destroy any borders not associated with the focused workspace
|
||||||
let container_ids = ws
|
let mut container_and_floating_window_ids = ws
|
||||||
.containers()
|
.containers()
|
||||||
.iter()
|
.iter()
|
||||||
.map(|c| c.id().clone())
|
.map(|c| c.id().clone())
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
|
for w in ws.floating_windows() {
|
||||||
|
container_and_floating_window_ids.push(w.hwnd.to_string());
|
||||||
|
}
|
||||||
|
|
||||||
let mut to_remove = vec![];
|
let mut to_remove = vec![];
|
||||||
for (id, border) in borders.iter() {
|
for (id, border) in borders.iter() {
|
||||||
if borders_monitors.get(id).copied().unwrap_or_default() == monitor_idx
|
if borders_monitors.get(id).copied().unwrap_or_default() == monitor_idx
|
||||||
&& !container_ids.contains(id)
|
&& !container_and_floating_window_ids.contains(id)
|
||||||
{
|
{
|
||||||
border.destroy()?;
|
border.destroy()?;
|
||||||
to_remove.push(id.clone());
|
to_remove.push(id.clone());
|
||||||
|
|||||||
Reference in New Issue
Block a user