rename focus_to_{next,prev}_group functions

This commit is contained in:
Skia 2025-04-13 14:30:53 +02:00
parent a8a80eb514
commit d6eb1b62a6
2 changed files with 7 additions and 7 deletions

View file

@ -564,15 +564,15 @@ impl SwaySome {
self.send_command(&cmd); self.send_command(&cmd);
} }
pub fn focus_container_to_next_group(&self) { pub fn focus_to_next_group(&self) {
self.focus_container_to_next_or_prev_group(false); self.focus_to_next_or_prev_group(false);
} }
pub fn focus_container_to_prev_group(&self) { pub fn focus_to_prev_group(&self) {
self.focus_container_to_next_or_prev_group(true); self.focus_to_next_or_prev_group(true);
} }
fn focus_container_to_next_or_prev_group(&self, go_to_prev: bool) { fn focus_to_next_or_prev_group(&self, go_to_prev: bool) {
let current_workspace_index: usize = self.get_current_workspace_index(); let current_workspace_index: usize = self.get_current_workspace_index();
let focused_group_index = current_workspace_index / MAX_GROUP_WS; let focused_group_index = current_workspace_index / MAX_GROUP_WS;

View file

@ -100,10 +100,10 @@ fn main() {
swaysome.move_workspace_group_to_prev_output(); swaysome.move_workspace_group_to_prev_output();
} }
Command::NextGroup => { Command::NextGroup => {
swaysome.focus_container_to_next_group(); swaysome.focus_to_next_group();
} }
Command::PrevGroup => { Command::PrevGroup => {
swaysome.focus_container_to_prev_group(); swaysome.focus_to_prev_group();
} }
Command::RearrangeWorkspaces => { Command::RearrangeWorkspaces => {
swaysome.rearrange_workspaces(); swaysome.rearrange_workspaces();