layout: Ignore more actions during interactive move
Browse files at this commita2b27b8790e5e09edeb9933a785f4272efcb1734Parent: 396089e1 changed file +7 -7
- src/layout/mod.rs +7 -7
src/layout/mod.rsmodified+7 -7
| @@ -1664,7 +1664,7 @@ impl<W: LayoutElement> Layout<W> { | |||
| 1664 | 1664 | ||
| 1665 | pub fn consume_or_expel_window_left(&mut self, window: Option<&W::Id>) { | 1665 | pub fn consume_or_expel_window_left(&mut self, window: Option<&W::Id>) { |
| 1666 | if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move { | 1666 | if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move { |
| 1667 | - if window == Some(move_.tile.window().id()) { | 1667 | + if window.is_none() || window == Some(move_.tile.window().id()) { |
| 1668 | return; | 1668 | return; |
| 1669 | } | 1669 | } |
| 1670 | } | 1670 | } |
| @@ -1687,7 +1687,7 @@ impl<W: LayoutElement> Layout<W> { | |||
| 1687 | 1687 | ||
| 1688 | pub fn consume_or_expel_window_right(&mut self, window: Option<&W::Id>) { | 1688 | pub fn consume_or_expel_window_right(&mut self, window: Option<&W::Id>) { |
| 1689 | if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move { | 1689 | if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move { |
| 1690 | - if window == Some(move_.tile.window().id()) { | 1690 | + if window.is_none() || window == Some(move_.tile.window().id()) { |
| 1691 | return; | 1691 | return; |
| 1692 | } | 1692 | } |
| 1693 | } | 1693 | } |
| @@ -1866,7 +1866,7 @@ impl<W: LayoutElement> Layout<W> { | |||
| 1866 | 1866 | ||
| 1867 | pub fn move_to_workspace(&mut self, window: Option<&W::Id>, idx: usize) { | 1867 | pub fn move_to_workspace(&mut self, window: Option<&W::Id>, idx: usize) { |
| 1868 | if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move { | 1868 | if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move { |
| 1869 | - if window == Some(move_.tile.window().id()) { | 1869 | + if window.is_none() || window == Some(move_.tile.window().id()) { |
| 1870 | return; | 1870 | return; |
| 1871 | } | 1871 | } |
| 1872 | } | 1872 | } |
| @@ -2516,7 +2516,7 @@ impl<W: LayoutElement> Layout<W> { | |||
| 2516 | 2516 | ||
| 2517 | pub fn toggle_window_height(&mut self, window: Option<&W::Id>) { | 2517 | pub fn toggle_window_height(&mut self, window: Option<&W::Id>) { |
| 2518 | if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move { | 2518 | if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move { |
| 2519 | - if window == Some(move_.tile.window().id()) { | 2519 | + if window.is_none() || window == Some(move_.tile.window().id()) { |
| 2520 | return; | 2520 | return; |
| 2521 | } | 2521 | } |
| 2522 | } | 2522 | } |
| @@ -2553,7 +2553,7 @@ impl<W: LayoutElement> Layout<W> { | |||
| 2553 | 2553 | ||
| 2554 | pub fn set_window_height(&mut self, window: Option<&W::Id>, change: SizeChange) { | 2554 | pub fn set_window_height(&mut self, window: Option<&W::Id>, change: SizeChange) { |
| 2555 | if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move { | 2555 | if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move { |
| 2556 | - if window == Some(move_.tile.window().id()) { | 2556 | + if window.is_none() || window == Some(move_.tile.window().id()) { |
| 2557 | return; | 2557 | return; |
| 2558 | } | 2558 | } |
| 2559 | } | 2559 | } |
| @@ -2576,7 +2576,7 @@ impl<W: LayoutElement> Layout<W> { | |||
| 2576 | 2576 | ||
| 2577 | pub fn reset_window_height(&mut self, window: Option<&W::Id>) { | 2577 | pub fn reset_window_height(&mut self, window: Option<&W::Id>) { |
| 2578 | if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move { | 2578 | if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move { |
| 2579 | - if window == Some(move_.tile.window().id()) { | 2579 | + if window.is_none() || window == Some(move_.tile.window().id()) { |
| 2580 | return; | 2580 | return; |
| 2581 | } | 2581 | } |
| 2582 | } | 2582 | } |
| @@ -2620,7 +2620,7 @@ impl<W: LayoutElement> Layout<W> { | |||
| 2620 | target_ws_idx: Option<usize>, | 2620 | target_ws_idx: Option<usize>, |
| 2621 | ) { | 2621 | ) { |
| 2622 | if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move { | 2622 | if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move { |
| 2623 | - if window == Some(move_.tile.window().id()) { | 2623 | + if window.is_none() || window == Some(move_.tile.window().id()) { |
| 2624 | return; | 2624 | return; |
| 2625 | } | 2625 | } |
| 2626 | } | 2626 | } |