diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-27 09:58:22 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-30 20:12:37 +0300 |
| commit | 6fba4c371e7868f8d581cf3d49d611cdbb590ad4 (patch) | |
| tree | 801c85e1ff6df4c9cdb9bcc916e91de70710a512 /src/window/unmapped.rs | |
| parent | 27911431dbfb8ad5e17ea295a9ae69847577260f (diff) | |
| download | niri-6fba4c371e7868f8d581cf3d49d611cdbb590ad4.tar.gz niri-6fba4c371e7868f8d581cf3d49d611cdbb590ad4.tar.bz2 niri-6fba4c371e7868f8d581cf3d49d611cdbb590ad4.zip | |
Implement default-window-height window rule
Only works for floats that aren't initially fullscreen atm.
Diffstat (limited to 'src/window/unmapped.rs')
| -rw-r--r-- | src/window/unmapped.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/window/unmapped.rs b/src/window/unmapped.rs index 3ea0f1d8..18073a98 100644 --- a/src/window/unmapped.rs +++ b/src/window/unmapped.rs @@ -1,3 +1,4 @@ +use niri_config::PresetSize; use smithay::desktop::Window; use smithay::output::Output; use smithay::wayland::shell::xdg::ToplevelSurface; @@ -40,6 +41,11 @@ pub enum InitialConfigureState { /// `None` means that the window will pick its own width. floating_width: Option<ColumnWidth>, + /// Resolved floating default height for this window. + /// + /// `None` means that the window will pick its own height. + floating_height: Option<PresetSize>, + /// Whether the window should open full-width. is_full_width: bool, |
