Skip to content

Commit 66f8ca2

Browse files
author
Innes Anderson-Morrison
committed
changing behaviour of the new workspace cycling methods to pull tags to the focused screen
1 parent 210f23d commit 66f8ca2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/pure/stack_set.rs

+7-5
Original file line numberDiff line numberDiff line change
@@ -419,24 +419,26 @@ where
419419
// be present on it, but handling things this way means we avoid having any unwrapping or
420420
// raw indexing into vecs.
421421
if let Some(new_tag) = it.nth(1).or(tags.first()) {
422-
self.focus_tag(new_tag)
422+
self.pull_tag_to_screen(new_tag)
423423
}
424424
}
425425

426426
/// Move focus to the [Workspace] after the currently focused workspace as defined by their
427427
/// position in [StackSet::ordered_workspaces].
428428
///
429-
/// As with the behaviour of [StackSet::focus_tag], if the next tag is on another screen then
430-
/// focus will move to that screen rather than pulling the workspace to the active screen.
429+
/// As with the behaviour of [StackSet::pull_tag_to_screen], if the next tag is on another
430+
/// screen then it will be pulled to the active screen rather than focus moving to the screen
431+
/// where the tag is currently located.
431432
pub fn focus_next_workspace(&mut self) {
432433
self.focus_adjacent_workspace(self.ordered_tags())
433434
}
434435

435436
/// Move focus to the [Workspace] before the currently focused workspace as defined by their
436437
/// position in [StackSet::ordered_workspaces].
437438
///
438-
/// As with the behaviour of [StackSet::focus_tag], if the next tag is on another screen then
439-
/// focus will move to that screen rather than pulling the workspace to the active screen.
439+
/// As with the behaviour of [StackSet::pull_tag_to_screen], if the next tag is on another
440+
/// screen then it will be pulled to the active screen rather than focus moving to the screen
441+
/// where the tag is currently located.
440442
pub fn focus_previous_workspace(&mut self) {
441443
let mut tags = self.ordered_tags();
442444
tags.reverse();

0 commit comments

Comments
 (0)