Fix spelling of prefers
This commit is contained in:
parent
540ed3d170
commit
6fc36cb00e
2 changed files with 4 additions and 4 deletions
|
|
@ -668,11 +668,11 @@ impl Workspaces {
|
|||
self.sets.insert(output.clone(), set);
|
||||
let mut moved_workspaces = Vec::new();
|
||||
for set in self.sets.values_mut() {
|
||||
let (preferrs, doesnt) = set
|
||||
let (prefers, doesnt) = set
|
||||
.workspaces
|
||||
.drain(..)
|
||||
.partition(|w| w.preferrs_output(output));
|
||||
moved_workspaces.extend(preferrs);
|
||||
.partition(|w| w.prefers_output(output));
|
||||
moved_workspaces.extend(prefers);
|
||||
set.workspaces = doesnt;
|
||||
if set.workspaces.is_empty() {
|
||||
set.add_empty_workspace(workspace_state);
|
||||
|
|
|
|||
|
|
@ -374,7 +374,7 @@ impl Workspace {
|
|||
self.output = output.clone();
|
||||
}
|
||||
|
||||
pub fn preferrs_output(&self, output: &Output) -> bool {
|
||||
pub fn prefers_output(&self, output: &Output) -> bool {
|
||||
self.output_stack.contains(&output.name())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue