@@ -419,24 +419,26 @@ where
419
419
// be present on it, but handling things this way means we avoid having any unwrapping or
420
420
// raw indexing into vecs.
421
421
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)
423
423
}
424
424
}
425
425
426
426
/// Move focus to the [Workspace] after the currently focused workspace as defined by their
427
427
/// position in [StackSet::ordered_workspaces].
428
428
///
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.
431
432
pub fn focus_next_workspace ( & mut self ) {
432
433
self . focus_adjacent_workspace ( self . ordered_tags ( ) )
433
434
}
434
435
435
436
/// Move focus to the [Workspace] before the currently focused workspace as defined by their
436
437
/// position in [StackSet::ordered_workspaces].
437
438
///
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.
440
442
pub fn focus_previous_workspace ( & mut self ) {
441
443
let mut tags = self . ordered_tags ( ) ;
442
444
tags. reverse ( ) ;
0 commit comments