diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-08-23 15:41:06 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-08-23 15:41:06 +0300 |
| commit | c8839f7658588bfd7f0f41bf2c2726e526366abf (patch) | |
| tree | 99a2efd437d61d2b1eeda7b96bc68aa940716ef6 /src/layout/monitor.rs | |
| parent | dfe3580607ff469837c23b34db34882b16d87a47 (diff) | |
| download | niri-c8839f7658588bfd7f0f41bf2c2726e526366abf.tar.gz niri-c8839f7658588bfd7f0f41bf2c2726e526366abf.tar.bz2 niri-c8839f7658588bfd7f0f41bf2c2726e526366abf.zip | |
Implement window close transaction
Mainly visible with disabled animations.
Diffstat (limited to 'src/layout/monitor.rs')
| -rw-r--r-- | src/layout/monitor.rs | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/src/layout/monitor.rs b/src/layout/monitor.rs index 423b2ef9..07223521 100644 --- a/src/layout/monitor.rs +++ b/src/layout/monitor.rs @@ -19,6 +19,7 @@ use crate::input::swipe_tracker::SwipeTracker; use crate::render_helpers::renderer::NiriRenderer; use crate::render_helpers::RenderTarget; use crate::rubber_band::RubberBand; +use crate::utils::transaction::Transaction; use crate::utils::{output_size, to_physical_precise_round, ResizeEdge}; /// Amount of touchpad movement to scroll the height of one workspace. @@ -442,7 +443,12 @@ impl<W: LayoutElement> Monitor<W> { let width = column.width; let is_full_width = column.is_full_width; let window = workspace - .remove_tile_by_idx(workspace.active_column_idx, column.active_tile_idx, None) + .remove_tile_by_idx( + workspace.active_column_idx, + column.active_tile_idx, + Transaction::new(), + None, + ) .into_window(); self.add_window(new_idx, window, true, width, is_full_width); @@ -465,7 +471,12 @@ impl<W: LayoutElement> Monitor<W> { let width = column.width; let is_full_width = column.is_full_width; let window = workspace - .remove_tile_by_idx(workspace.active_column_idx, column.active_tile_idx, None) + .remove_tile_by_idx( + workspace.active_column_idx, + column.active_tile_idx, + Transaction::new(), + None, + ) .into_window(); self.add_window(new_idx, window, true, width, is_full_width); @@ -488,7 +499,12 @@ impl<W: LayoutElement> Monitor<W> { let width = column.width; let is_full_width = column.is_full_width; let window = workspace - .remove_tile_by_idx(workspace.active_column_idx, column.active_tile_idx, None) + .remove_tile_by_idx( + workspace.active_column_idx, + column.active_tile_idx, + Transaction::new(), + None, + ) .into_window(); self.add_window(new_idx, window, true, width, is_full_width); |
