aboutsummaryrefslogtreecommitdiff
path: root/src/layout/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/mod.rs')
-rw-r--r--src/layout/mod.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs
index 64e6877c..62ece8c0 100644
--- a/src/layout/mod.rs
+++ b/src/layout/mod.rs
@@ -2120,7 +2120,12 @@ impl<W: LayoutElement> Layout<W> {
monitor.move_to_workspace_down();
}
- pub fn move_to_workspace(&mut self, window: Option<&W::Id>, idx: usize) {
+ pub fn move_to_workspace(
+ &mut self,
+ window: Option<&W::Id>,
+ idx: usize,
+ activate: ActivateWindow,
+ ) {
if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move {
if window.is_none() || window == Some(move_.tile.window().id()) {
return;
@@ -2143,7 +2148,7 @@ impl<W: LayoutElement> Layout<W> {
};
monitor
};
- monitor.move_to_workspace(window, idx);
+ monitor.move_to_workspace(window, idx, activate);
}
pub fn move_column_to_workspace_up(&mut self) {