aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-09-12 13:36:00 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-09-12 13:36:08 +0300
commitcdcd5a2835cd4d48d9b51cce4b94fbd1a6eb8b5c (patch)
tree3415ad22c8b190c661c3594bd03f02e36a71b904
parent737e99ec6949d648c39f5ab7ad7af52c0e8602b5 (diff)
downloadniri-cdcd5a2835cd4d48d9b51cce4b94fbd1a6eb8b5c.tar.gz
niri-cdcd5a2835cd4d48d9b51cce4b94fbd1a6eb8b5c.tar.bz2
niri-cdcd5a2835cd4d48d9b51cce4b94fbd1a6eb8b5c.zip
Update comments
-rw-r--r--src/layout/workspace.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs
index f6a659f8..b2db42c8 100644
--- a/src/layout/workspace.rs
+++ b/src/layout/workspace.rs
@@ -191,13 +191,10 @@ struct InteractiveResize<W: LayoutElement> {
pub enum ColumnWidth {
/// Proportion of the current view width.
Proportion(f64),
- /// One of the proportion presets.
- ///
- /// This is separate from Proportion in order to be able to reliably cycle between preset
- /// proportions.
- Preset(usize),
/// Fixed width in logical pixels.
Fixed(f64),
+ /// One of the preset widths.
+ Preset(usize),
}
/// Height of a window in a column.
@@ -222,10 +219,11 @@ pub enum WindowHeight {
Auto { weight: f64 },
/// Fixed *window* height in logical pixels.
Fixed(f64),
- /// One of the *tile* height proportion presets.
+ /// One of the preset heights (tile or window).
Preset(usize),
}
+/// Resolved width or height in logical pixels.
#[derive(Debug, Clone, Copy)]
pub enum ResolvedSize {
/// Size of the tile including borders.