diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-27 11:20:03 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-12-30 20:12:37 +0300 |
| commit | a24a6e4e3c441389fd7731320f47e61e567e237f (patch) | |
| tree | 0f93350f38a83af27ccb5549191323dc56cf9b4e /src/layout/mod.rs | |
| parent | 6fba4c371e7868f8d581cf3d49d611cdbb590ad4 (diff) | |
| download | niri-a24a6e4e3c441389fd7731320f47e61e567e237f.tar.gz niri-a24a6e4e3c441389fd7731320f47e61e567e237f.tar.bz2 niri-a24a6e4e3c441389fd7731320f47e61e567e237f.zip | |
Implement is-floating window rule matcher
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 8f512c3b..2b12c7bb 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -186,6 +186,7 @@ pub trait LayoutElement { fn set_offscreen_element_id(&self, id: Option<Id>); fn set_activated(&mut self, active: bool); fn set_active_in_column(&mut self, active: bool); + fn set_floating(&mut self, floating: bool); fn set_bounds(&self, bounds: Size<i32, Logical>); fn configure_intent(&self) -> ConfigureIntent; @@ -3746,6 +3747,7 @@ impl<W: LayoutElement> Layout<W> { let win = move_.tile.window_mut(); win.set_active_in_column(true); + win.set_floating(move_.is_floating); win.set_activated(true); win.set_interactive_resize(None); @@ -4074,6 +4076,8 @@ mod tests { fn set_active_in_column(&mut self, _active: bool) {} + fn set_floating(&mut self, _floating: bool) {} + fn is_fullscreen(&self) -> bool { false } |
