layout: Add missing active idx check before setting activate prev on removal
Browse files at this commitdd8b2be044c6c67a1c9bf07f287b3967e958b8aaParent: 8d087821 changed file +2 -1
- src/layout/workspace.rs +2 -1
src/layout/workspace.rsmodified+2 -1
| @@ -1097,7 +1097,8 @@ impl<W: LayoutElement> Workspace<W> { | |||
| 1097 | self.compute_new_view_offset_for_column(self.view_pos(), idx, None); | 1097 | self.compute_new_view_offset_for_column(self.view_pos(), idx, None); |
| 1098 | } | 1098 | } |
| 1099 | 1099 | ||
| 1100 | - let prev_offset = (!was_empty).then(|| self.static_view_offset()); | 1100 | + let prev_offset = (!was_empty && idx == self.active_column_idx + 1) |
| 1101 | + .then(|| self.static_view_offset()); | ||
| 1101 | 1102 | ||
| 1102 | let anim_config = | 1103 | let anim_config = |
| 1103 | anim_config.unwrap_or(self.options.animations.horizontal_view_movement.0); | 1104 | anim_config.unwrap_or(self.options.animations.horizontal_view_movement.0); |