fix(borders): destroy all if a different vd is detected

This commit ensures that all borders will destroyed if komorebi detects
that the user has switched to a Windows Virtual Desktop different from
the one it was launched on and associated with.

There is still some work to be done to forcibly redraw the borders when
a navigation back to the VD associated with komorebi is detected, but
that requires tracking the state of the current VD ID outside of the
process_event handler somewhere.

re #1420
This commit is contained in:
LGUG2Z
2025-04-24 21:41:18 -07:00
parent bdbd665b21
commit 917cd9b7db

View File

@@ -123,6 +123,11 @@ impl WindowManager {
"ignoring events and commands while not on virtual desktop {:?}",
virtual_desktop_id
);
// TODO: when returning from another VD to the VD associated with komorebi
// if borders are enabled, they will not be drawn again until the user interacts
// with the workspace or forces a retile
border_manager::destroy_all_borders()?;
return Ok(());
}
}