diff options
| author | sodiboo <37938646+sodiboo@users.noreply.github.com> | 2024-03-01 12:50:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-01 03:50:49 -0800 |
| commit | 24537ec2ba3c24e2dd969b8a78df95dbdae1ac6d (patch) | |
| tree | c0e4b23e4dee60e591a609bc717874c18edb312b /src/handlers | |
| parent | 88ac16c99a4a86f61a38ac4584bf13a9358f6236 (diff) | |
| download | niri-24537ec2ba3c24e2dd969b8a78df95dbdae1ac6d.tar.gz niri-24537ec2ba3c24e2dd969b8a78df95dbdae1ac6d.tar.bz2 niri-24537ec2ba3c24e2dd969b8a78df95dbdae1ac6d.zip | |
Correctly handle parsing of Binds and DefaultColumnWidth (#234)
* add dev dependencies to flake
* parse only one default-column-width
* require exactly one action per bind, and unique keys for binds
* use proper filename for config errors if possible
* fix duplicate keybinds after invalid action, lose some sanity
Diffstat (limited to 'src/handlers')
| -rw-r--r-- | src/handlers/xdg_shell.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handlers/xdg_shell.rs b/src/handlers/xdg_shell.rs index cf23d264..78b38be3 100644 --- a/src/handlers/xdg_shell.rs +++ b/src/handlers/xdg_shell.rs @@ -81,7 +81,7 @@ pub fn resolve_window_rules( if let Some(x) = rule .default_column_width .as_ref() - .map(|d| d.0.first().copied().map(ColumnWidth::from)) + .map(|d| d.0.map(ColumnWidth::from)) { resolved.default_width = Some(x); } |
