feat(config): update border opts, add deprecations

This commit includes backwards-compatible renames of
active_window_border_offset and active_window_border_width to
border_offset and border_width respectively.

Since the invisible window border adjustments were removed in #678, the
invisible window borders set by the OS can now also be adjusted via
border_offset and border_width, which is the primary reason for the
rename.

invisible_borders has been marked as deprecated and the previously
deprecated alt_focus_hack option has been removed.
This commit is contained in:
LGUG2Z
2024-02-25 17:41:47 -08:00
parent 94d8f72904
commit e0e3afa5b9
10 changed files with 27 additions and 55 deletions

View File

@@ -192,10 +192,7 @@ impl Monitor {
self.workspaces().len()
}
pub fn update_focused_workspace(
&mut self,
offset: Option<Rect>,
) -> Result<()> {
pub fn update_focused_workspace(&mut self, offset: Option<Rect>) -> Result<()> {
let work_area = *self.work_area_size();
let offset = if self.work_area_offset().is_some() {
self.work_area_offset()