mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-09 22:52:51 +02:00
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:
@@ -123,6 +123,11 @@ impl WindowManager {
|
|||||||
"ignoring events and commands while not on virtual desktop {:?}",
|
"ignoring events and commands while not on virtual desktop {:?}",
|
||||||
virtual_desktop_id
|
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(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user