diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-11-01 17:41:02 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-11-01 17:41:02 +0400 |
| commit | ee8404b9a9e6976b58a3ca4c690dd1a848e2bc52 (patch) | |
| tree | 93d36c72dd4a0454e46903f0c44d35ef54501fae /src/handlers | |
| parent | 5a86b437448e5f8cea4ae2702dc242a8e15d77b8 (diff) | |
| download | niri-ee8404b9a9e6976b58a3ca4c690dd1a848e2bc52.tar.gz niri-ee8404b9a9e6976b58a3ca4c690dd1a848e2bc52.tar.bz2 niri-ee8404b9a9e6976b58a3ca4c690dd1a848e2bc52.zip | |
Preserve column width on window actions
Fixes https://github.com/YaLTeR/niri/issues/53
Diffstat (limited to 'src/handlers')
| -rw-r--r-- | src/handlers/compositor.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/handlers/compositor.rs b/src/handlers/compositor.rs index 3a0d5866..dfc65648 100644 --- a/src/handlers/compositor.rs +++ b/src/handlers/compositor.rs @@ -18,6 +18,7 @@ use smithay::wayland::shm::{ShmHandler, ShmState}; use smithay::{delegate_compositor, delegate_shm}; use super::xdg_shell; +use crate::layout::ColumnWidth; use crate::niri::{ClientState, State}; impl CompositorHandler for State { @@ -98,7 +99,12 @@ impl CompositorHandler for State { let window = entry.remove(); window.on_commit(); - if let Some(output) = self.niri.layout.add_window(window, true).cloned() { + if let Some(output) = self + .niri + .layout + .add_window(window, true, ColumnWidth::default()) + .cloned() + { self.niri.queue_redraw(output); } return; |
