From c8839f7658588bfd7f0f41bf2c2726e526366abf Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 23 Aug 2024 15:41:06 +0300 Subject: Implement window close transaction Mainly visible with disabled animations. --- src/layout/monitor.rs | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'src/layout/monitor.rs') 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 Monitor { 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 Monitor { 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 Monitor { 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); -- cgit