From 7671a5d833a5de612247404b69a4583ef703ff42 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Thu, 24 Apr 2025 18:43:52 +0300 Subject: layout/monitor: Don't consider workspace switch in active_tile_visual_rectangle() This only did something when in the middle of a touchpad gesture, and it didn't really make sense for that edge case. --- src/layout/monitor.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src') diff --git a/src/layout/monitor.rs b/src/layout/monitor.rs index ee16dc01..07e266be 100644 --- a/src/layout/monitor.rs +++ b/src/layout/monitor.rs @@ -902,19 +902,7 @@ impl Monitor { /// /// During animations, assumes the final view position. pub fn active_tile_visual_rectangle(&self) -> Option> { - let mut rect = self.active_workspace_ref().active_tile_visual_rectangle()?; - - if let Some(switch) = &self.workspace_switch { - let size = output_size(&self.output).to_f64(); - - let offset = switch.target_idx() - self.active_workspace_idx as f64; - let offset = offset * size.h; - - let clip_rect = Rectangle::new(Point::from((0., -offset)), size); - rect = rect.intersection(clip_rect)?; - } - - Some(rect) + self.active_workspace_ref().active_tile_visual_rectangle() } pub fn workspace_render_idx(&self) -> f64 { -- cgit