Rename window -> tile, fix popup unconstraining window_y

I missed the window_y thing and found it thanks to the rename. Too lazy
to split it into a commit.
This commit is contained in:
Ivan Molodetskikh
2023-12-28 08:14:35 +04:00
parent c21805bf70
commit 777ad4ee5c
4 changed files with 134 additions and 132 deletions
+3 -3
View File
@@ -141,7 +141,7 @@ pub struct Options {
border: config::FocusRing,
/// Column widths that `toggle_width()` switches between.
preset_widths: Vec<ColumnWidth>,
/// Initial width for new windows.
/// Initial width for new columns.
default_width: Option<ColumnWidth>,
}
@@ -717,7 +717,7 @@ impl<W: LayoutElement> Layout<W> {
}
let col = &ws.columns[ws.active_column_idx];
Some((&col.windows[col.active_window_idx].window(), &mon.output))
Some((&col.tiles[col.active_tile_idx].window(), &mon.output))
}
pub fn windows_for_output(&self, output: &Output) -> impl Iterator<Item = &W> + '_ {
@@ -1138,7 +1138,7 @@ impl<W: LayoutElement> Layout<W> {
let column = &ws.columns[ws.active_column_idx];
let width = column.width;
let is_full_width = column.is_full_width;
let window = ws.remove_window_by_idx(ws.active_column_idx, column.active_window_idx);
let window = ws.remove_window_by_idx(ws.active_column_idx, column.active_tile_idx);
let workspace_idx = monitors[new_idx].active_workspace_idx;
self.add_window_by_idx(new_idx, workspace_idx, window, true, width, is_full_width);