diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-12-28 08:14:35 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-12-28 08:25:42 +0400 |
| commit | 777ad4ee5c8cf84b2bfa13c6bdb0d254c24881f9 (patch) | |
| tree | a4f33362d0300ecdb8cf82fd3cd3b2837b634957 /src/layout/mod.rs | |
| parent | c21805bf705bd36a6eb7f79039b759e9af79dfcb (diff) | |
| download | niri-777ad4ee5c8cf84b2bfa13c6bdb0d254c24881f9.tar.gz niri-777ad4ee5c8cf84b2bfa13c6bdb0d254c24881f9.tar.bz2 niri-777ad4ee5c8cf84b2bfa13c6bdb0d254c24881f9.zip | |
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.
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 8d454728..484a377a 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -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); |
